Pthread Read/Write Lock Freeze one of the calling thread.

Khem Raj raj.khem at gmail.com
Sat Feb 13 04:56:13 UTC 2010


On Wed, Feb 10, 2010 at 5:04 AM, Gauthier, Simon
<Simon.Gauthier at verint.com> wrote:
> Hi,
>
> Here is the thread setting in my .config.
>
> # HAS_NO_THREADS is not set
> UCLIBC_HAS_THREADS=y
> # PTHREADS_DEBUG_SUPPORT is not set
> LINUXTHREADS_OLD=y
>
> Removing the sleep in the timer thread gives me a similar results.
>
> The list is locked by the timer thread [1].
> The list is unlocked by the timer thread [1].
> The list is locked by the timer thread [1].
> The list is unlocked by the timer thread [1].
> The list is locked by the timer thread [1].
> The list is locked by the timer thread [2].
> The list is unlocked by the timer thread [2].
> The list is locked by the timer thread [2].
> The list is unlocked by the timer thread [2].
>
> What happen now is that the thread 1 takes the lock, then the thread 2, then the thread 2 unlock and the thread 1 is block forever?

This does not occur if you are using nptl/uclibc on arm.

Thanks

-Khem


More information about the uClibc mailing list