Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2000 01:44:45 -0600
From:      Warner Losh <imp@village.org>
To:        Joerg Micheel <joerg@cs.waikato.ac.nz>
Cc:        Greg Lehey <grog@lemis.com>, Matthew Jacob <mjacob@feral.com>, Frank Mayhar <frank@exit.com>, John Baldwin <jhb@pike.osd.bsdi.com>, Mark Murray <markm@FreeBSD.ORG>, FreeBSD-arch@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/conf files src/sys/sys random.h src/sys/dev/randomdev hash.c hash.h harvest.c randomdev.c yarrow.c yarro 
Message-ID:  <200009130744.BAA86075@harmony.village.org>
In-Reply-To: Your message of "Tue, 12 Sep 2000 14:52:55 %2B1200." <20000912145255.A41113@cs.waikato.ac.nz> 
References:  <20000912145255.A41113@cs.waikato.ac.nz>  <200009120101.e8C11nN56928@realtime.exit.com> <Pine.LNX.4.21.0009111801490.25916-100000@zeppo.feral.com> <20000912121105.J88615@wantadilla.lemis.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20000912145255.A41113@cs.waikato.ac.nz> Joerg Micheel writes:
: I liked the model Sun chose for Solaris. They have mutex', rw_locks,
: condition variables. I don't like semaphores. Mutexes are for short
: locks. Condition variables are for long-term waits, they are associated
: with a mutex. You can only sleep/wakeup a CV when holding the associated
: with it, which prevents races. When having to sleep on a CV the kernel
: would unlock the mutex and reaquire it for the running thread before
: returning.

I've found that these are about as easy to use as spl/splx.

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009130744.BAA86075>