Marc-André Cournoyer's sideblog

Smallish blog posts, quotes, links I don't bother to write on macournoyer.wordpress.com
Feb 29
Permalink
How does non-blocking I/O provide better throughput? The OS schedules the user process differently in the case of blocking and non-blocking I/O. When you block, the process “sleeps”, which leads to a context switch. When you use non-blocking sockets, this problem is avoided.