Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 1996 21:40:52 -0400 (EDT)
From:      "Ron G. Minnich" <rminnich@Sarnoff.COM>
To:        Jukka Ukkonen <jau@jau.csc.fi>
Cc:        hackers@freebsd.com
Subject:   Re: physical memory addresses & memory locking...
Message-ID:  <Pine.SUN.3.91.960628213840.20405C-100000@terra>
In-Reply-To: <199606282219.BAA23320@jau.csc.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
I have a simple lock LKM which in essence allows processes to
1) test a lock
2) drop into kernel sleep() if it's set
3) if it's not set, lock it using pentium cswap
4) when clearing it, if there was contention, syscall that does
   a wakeup()

it's very efficient, much more so than sysv semaphores.
If you want it let me know. It's called fastlock. 

ron
   

Ron Minnich                |"Inferno runs on MIPS ..., Intel ..., and AMD's
rminnich@sarnoff.com       |29-kilobit-per-second chip-based architectures ..."
(609)-734-3120             |  Comm. week, may 13, pg. 4. 
ftp://ftp.sarnoff.com/pub/mnfs/www/docs/cluster.html 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.960628213840.20405C-100000>