EmbLogic's Blog

IPC

When two processes are communicating via fifo and if they are in the blocking state say block on open, block on read/write, what is the state of the process during this blocking state. Is it sleep state or wait state or anything else. Kindly clarify how kernel differentiate
between wait and sleep processes.

One Response to IPC

  1. Manoj says:

    Ma’m,

    Block on read/write is the state where process is in block state.
    Waiting state and block states are differnet with respect to the CPU allocation.
    .
    .
    A waiting process is waiting for the context switch, where it will get the CPU after a certain time, but a blocked process will not get the CPU untill and unless an particular event occures.
    .
    .
    Eventes can be I/O commands..
    .
    .

    In systems that support virtual memory, a waiting process may be swapped out, that is removed from main memory and placed in virtual memory by the mid-term scheduler. From here the process may be swapped back into the waiting state..
    .
    .
    same case is applied on blocked process also.

    thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>