How priority propagation works on read/write lock?

prime guomingyan at gmail.com
Thu Jan 12 22:32:35 PST 2006


Hi hackers,
   I have a question about how priority propagation works on
read/write lock.On locks that have only one owner at a determinate
moment,we can simply propagate the priority to the owner of lock,but
read/write lock may have many owners at some time,so how can we know
who are the owners?
   I browse the OpenSolaris' read/write lock implementation,and find
that, it simply treats the owner of the lock as NULL when readers own
the read/write lock.In this way,we can not propagate our priority to
all threads that block us.

Thanks very much.
--
Three passions, simple but overwhelmingly strong, have governed my life:
the longing for love, the search for knowledge, and unbearable pity for
the suffering of mankind.
                         ---------Bertrand Russell


More information about the freebsd-hackers mailing list