From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2003-06-04 10:52:53
Alexander Terekhov wrote:
> Stefan Seefeld wrote:
>>I'v been trying to find some info as to why semaphores
>>are considered harmful by the boost::thread authors,
>>without luck. Is there any concise text describing
>>the problem ?
well, that doesn't say anything but that it is error-prone.
All I'm trying to find out is: why ?
>>I'v been using semaphores for years and can't think of
>>what should be wrong with it.
I'm still not convinced. You are comparing semaphores with
mutexes, when you should compare semaphores with condition variables.
At least when argueing about efficiency.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk