Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is in simple words blocking IO and non-blocking IO?

Tags:

io

How would you explain a simple mortal about blocking IO and non-blocking IO? I've found these concepts are not very clear among many of us programmers.

like image 443
victor hugo Avatar asked Sep 26 '09 07:09

victor hugo


1 Answers

Blocking I/O means that the program execution is put on hold while the I/O is going on. So the program waits until the I/O is finished and then continues it's execution. In non-blocking I/O the program can continue during I/O operations.

like image 103
rael_kid Avatar answered Oct 19 '22 17:10

rael_kid