Blocking I/O Model
the most prevalent
I/O modelBy default
, all sockets areblocking
.- With Blocking I/O, system call return when:
- success
- data copied to application space
- error
- interrupted by signal (most common)
- others
- Process
blocked
when calling these kind of system call.
NonBlocking I/O Model
- when set a socket to be nonblocking