blocking io

Posted on 2005-04-09
Last Modified: 2010-04-22
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

Question by:karana
    LVL 12

    Expert Comment

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


    LVL 8

    Accepted Solution

    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.


    Author Comment

    thankx for a good and immediate answer ,

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now