Asked By
chelsie
10 points
N/A
Posted on - 11/05/2011
What are the three (3) advantages and disadvantages of blocking and non- blocking I /O base on its uses? Could it be possible to choose only one, the non-blocking I/O and have the process busy waiting for the device to become ready? Which is more advantageous to use the blocking IO/ or the non- blocking I/O? Please explain why? Thank you.
Advantages and disadvantages of blocking and no-blocking I/O?
There are advantages and disadvantages for both blocking and non-blocking I/O. In case of blocking it require less effort to code, linear programming and has minor control. You have to wait for some time because it cannot do anything if it has not received IO fully. For the second one, parallel programming, need higher effort and maximum control. So it is recommended that non-blocking is better.
Advantages and disadvantages of blocking and no-blocking I/O?
Hi. When blocking IO you cannot do anything more, not until the IO is fully received. While with non-blocking IO, it queued IO request straight away and function returns. Under blocking mode, the I/O connects and receive operations until the process in the question is completed. Under non-blocking mode if a Winsock call cannot complete right away the call will not succeed.