hi hackers,
I want to use turnstile to implement sx_lock( or read/write  lock),but
find that there is a big obstacle,
ONE sx_lock needs TWO queues to put waiters on,one for readers and the
other one for writers,but ONE turnstile can only supply ONE queue,and ONE
sx_lock can only get ONE turnstile.

I read opensolaris' rw_lock implementation and find that its turnstile
has TWO queues which is different from FreeBSD's turnstile.

Are there any good ideas to bypass the obstacle? 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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to