Advantages and disadvantages of blocking and no-blocking I/O?

Asked By 10 points N/A Posted on -
qa-featured

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.

SHARE
Best Answer by Sharon bidron
Best Answer
Best Answer
Answered By 0 points N/A #105429

Advantages and disadvantages of blocking and no-blocking I/O?

qa-featured

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.

Answered By 0 points N/A #197432

Advantages and disadvantages of blocking and no-blocking I/O?

qa-featured

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.

Related Questions