blocking io

sir ,

      i m little bit confused about these terms .

 Suppose a process p is waiting for resource ,say x , is in spin lock . we can say that process is in blocking io mode .

And process p , returns immediately and poll for the availability of data using poll() , can be said to be in non blocking io mode .

My doubt :
Suppose process p goes to sleep , after finding that data is not available and wake up when data is  availble is said to be in WHICH mode ?

a) Blocking
b)non Blocking

sir ,give me valid reasons

Who is Participating?
Just to backup Stefan, any time a process does not continue immediately but waits in whatever fashion (you've described one), then it is blocking.

Non-blocking means a quick attempt is made and the process always continues where the programmer must then figure out what is missing.

Hi karana,
That's blocking mode, since the process does not immediately return when a resource is not available.


karanaAuthor Commented:
thankx for a good and immediate answer ,
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.