← Graph

Non-blocking I/O

concept 1 connections

I/O model where read_nonblock/write_nonblock return immediately; when not ready they raise IO::WaitReadable/WaitWritable (EAGAIN/EWOULDBLOCK). Readiness is tested separately via IO.select (or epoll/kqueue), enabling a single event loop to serve many sockets.

category
pattern
about
Non-blocking I/O concept
Contrasts non-blocking IO with threaded blocking IO

Provenance

Read by
4 extractions