Re: blocking IPC

From: Valentin Nechayev (netch_at_segfault.kiev.ua)
Date: 05/30/03


Date: Fri, 30 May 2003 08:15:12 +0300


>>> Leonidas Petrauskas wrote:

LP> what is the best way for blocking on a condition?
LP> Situation: process A spawns child B,
LP> B waits for messages from A.
LP> When A sends B a message, it blocks until
LP> receiving answer from B.

Unnamed pipes. They doesn't pollute any namespace.

LP> Waiting has to be effective also (no busy loops).

Of course.

-netch-



Relevant Pages

  • blocking IPC
    ... what is the best way for blocking on a condition? ... process A spawns child B, ... Waiting has to be effective also (no busy loops). ...
    (comp.unix.programmer)
  • Re: blocking IPC
    ... process A spawns child B, ... > Waiting has to be effective also. ... Blocking is no problem at all... ... The various IPC mechanisms that can used here (pipes, ...
    (comp.unix.programmer)
  • Re: non blocking sockets
    ... > consider anything that requires waiting for a totally external event ... If these are your opinions about what the standard should ... want to say blocking is or isn't, ... > waiting for a page fault or local memory to become available to be ...
    (comp.unix.programmer)
  • Re: getting a threads state and CPU utilization
    ... a thread -- that is, running, suspended, or waiting on a synchronization ... deadlock by waiting on objects that form a loop, ... You couldn't just look for a long blocking wait since it might be ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Please help a young, clueless implementor: meaning of O_NONBLOCK
    ... At least for pipes, sockets it is implemented ... (Of course, some waiting can be ... to support nonblocking, and most implementations doesn't support such. ... blocking and nonblocking mode you have to implement this switching for ...
    (comp.unix.programmer)