From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2006-05-09 17:32:38
Aristid Breitkreuz wrote:
> The huge advantage of pipes is that with select, you can poll multiple
> event sources at once. Multiple sem_wait must be placed into multiple
> threads, which is probably more overkill for those rare signals than the
> selfpipe-trick (as they call it).
You are right. For event-driven programs that already run a select/poll
loop, adding just another file descriptor is the best thing to do.
But for all other cases the two require an equivalent efford.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk