Boost logo

Boost :

Subject: Re: [boost] [Boost-users] Brainstorming [WAS: Subject: Formal Review of Proposed Boost.Process library starts tomorrow]
From: Oliver Kowalke (k-oli_at_[hidden])
Date: 2011-02-14 15:50:49


Am 14.02.2011 21:14, schrieb Jeremy Maitin-Shepard:
> SIGCHLD handler will repeatedly invoke waitpid(-1, &status, WNOHANG |
> WUNTRACED | WCONTINUED), and then invoke any registered handlers.

why polling - it waists CPU cycles?
I expect that the thread waiting for child processes state change blocks
(gets suspended) until it is notified by the kernel that something has
happened.
other worker-thread do other stuff like communicating with other process
etc.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk