What Is Blocking IO?
Blocking IO is the model in which a read or write call does not return until the operation completes, suspending the calling thread until data is available or sent. The code is simple and sequential, but the thread does nothing useful while waiting. Handling many connections this way requires many threads or processes.
Why it matters
Blocking IO is easy to reason about and fine for sequential build scripts, but it limits how many things one thread can wait on. Recognizing it explains why concurrent workloads adopt non-blocking models instead.
Related guides
What Is Non-Blocking IO?Non-blocking IO returns immediately when an operation cannot complete yet, letting a single thread interleave…
What Is the Select System Call?The select system call lets a program wait until any of a set of file descriptors becomes ready for IO, or un…
What Is a Socket Read Timeout?A socket read timeout is the maximum time a program waits for data on a socket before giving up, preventing a…