IO

来源:互联网 发布:mac半条命2秘籍 编辑:程序博客网 时间:2024/05/30 22:49

blocking, don't return until data ready

nonblocking, return directly if data not ready

--level 1, every thread keep polling the data state

--level 2, select/poll, a dedicated thread keep polling all data states, scan all sockets every time.

--level 3, epoll, e means event-driven, scan only active sockets.

0 0
原创粉丝点击