IT lexicon › Web › Non-blocking I/O

Non-blocking I/O

Web På svenska → Updated: 2026-11-16

An I/O operation that returns immediately instead of halting the thread, then signals when data is ready.

With non-blocking I/O, a thread requests a read from a network socket but returns immediately—the operation continues in the background and the OS notifies the thread when data is available. Meanwhile, the same thread can handle other tasks. It's more complex to program—often requiring event loops or callbacks—but makes it possible to handle thousands of concurrent connections efficiently.

Most modern web and database servers use non-blocking I/O for scalability. Go, Node.js, and Rust have made non-blocking programming simple through language constructs like goroutines and async-await.

← Back to the lexicon