[Bug nptl/13701] pthread_rwlock_rdlock & realtime scheduling writer lock precedence

bruno at clisp dot org sourceware-bugzilla@sourceware.org
Sun Jun 17 22:18:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=13701

--- Comment #10 from Bruno Haible <bruno at clisp dot org> ---
(In reply to Torvald Riegel from comment #6)
> Raised this as a POSIX bug:
> http://austingroupbugs.net/view.php?id=1111

This POSIX bug has been resolved. The essential sentence in the
pthread_rwlock_rdlock specification now reads:

[TPS] If the Thread Execution Scheduling option is supported, and the threads
involved in the lock are executing with the scheduling policies SCHED_FIFO or
SCHED_RR, the calling thread shall not acquire the lock if a writer holds the
lock or if the calling thread does not already hold a read lock and writers of
higher or equal priority are blocked on the lock; otherwise, the calling thread
shall acquire the lock.

Therefore, the "current implementation" that works as described in comment #3
is still not POSIX compliant.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list