[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem (bug?) with recursive mutex's

From: Duncan Palmer
Subject: problem (bug?) with recursive mutex's
Date: Wed, 03 Oct 2001 10:44:41 +0100

Hi all,

I'm using libpthreads-0.9 and glibc-2.2.2 on x86 (redhat 7.1), and
StrongARM. I've got some code which has uses a recursive mutex, which is
held most of the time by one thread, but other threads which try to lock
the mutex are unable to. If i just use a fast mutex, everything is fine
(tho unfortunately, i really do need a recursive one).

I've attached a simple test case which reproduces the problem - it only
occurs when there is contention on the mutex, hence the usleep()...

The problem does not occur with libpthreads-0.8

Does anyone have any thoughts on this?


Duncan Palmer                                    
Software Design Engineer                          Phone:    
Silicon and Software Systems                      Fax:      

Attachment: thread.c
Description: application/unknown-content-type-cfile

reply via email to

[Prev in Thread] Current Thread [Next in Thread]