Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

Blocking and Nonblocking I/O

A small Python program asked a socket for data one second before any data was sent. It printed one line:

Output:

blocking recv returned b'order 1042' after 1.001 s

For that whole second, the program did nothing else. It could not read another socket, answer another client, or even notice that it was waiting. A server built this way needs one thread for every connection that might be waiting, and a server with 10,000 open connections needs 10,000 threads.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content