Why do threads block on I/O?
Threads block on I/O (that is enters the waiting state) so that other threads may execute while the I/O Operation is performed. Threads often block on I/O (Input/Output) operations in Java due to the nature of these operations. When a thread performs I/O, such as reading from a file, writing to a network socket, or … Read more