Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-08-30 14:12:31


David Daeschler wrote:
> This probably doesn't help much, but we ran into the same problem when
> using pthreads directly. One thread ran while another completely
> starved. The only solution we found was to include a call to
> pthread_yield after pthread_mutex_unlock in our ReleaseMutex routine.
> This fixed the starvation and didn't have a huge impact on performance.
>
Does someone understand the rationale for this implementation?

Thanks,

Sohail


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net