Boost logo

Boost :

From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2003-06-04 10:52:53


Alexander Terekhov wrote:
> Stefan Seefeld wrote:
>
>>hi there,
>>
>>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,
>
> http://www.boost.org/libs/thread/doc/faq.html#question10

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.
>
>
> http://google.com/groups?threadm=3CEB6073.ACBCFD17%40web.de
> http://google.com/groups?threadm=c29b5e33.0202011147.98b216e%40posting.google.com

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.

Regards,
                Stefan


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