IO

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.

你可能感兴趣的:(IO)