This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug linuxthreads/6508] Problem with mutexes and semaphores


------- Additional Comments From jakub at redhat dot com  2008-05-12 22:40 -------
Oops, sorry, that response was just to the comment, the testcase really doesn't
lock in one thread and unlock in a different one.
But, there are no guarantees both threads will alternate in the critical section
either, both threads have the same priority and thus it is arbitrary which one
acquires the mutex.  As pthread_mutex_lock is called immediately after unlock,
there is high probability the same thread will acquire the lock again.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6508

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]