Computer science: blocking vs non-blocking input/output
Self-tutoring about computer science: the tutor mentions the concepts of blocking and non-blocking i/o.
mode | effect |
---|---|
blocking | program waits for external process that it calls |
non-blocking | program continues past external process call, possibly even finishing before it receives response from external process |
Because non-blocking code can complete before the external process it called, there’s a risk that the output it asks for, it won’t pass on. The situation is comparable to someone asking a co-worker for a file, but then leaving the office before the co-worker brings it. The file then sits on the desk, its contents unread.
Source:
Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.
Leave a Reply
You must be logged in to post a comment.