Messages in this thread | | | Date | Mon, 12 Apr 2010 14:54:03 +0200 | From | Pavel Machek <> | Subject | Re: atomic RAM ? |
| |
Hi!
> OTOH, to do FUTEX in full (MMU) - Linux, atomic operations are > definitively necessary, as in Userland you can't disable the interrupt > without a Kernel call (which to avoid FUTEX is all about.) Currently the
You could create unpriviledged 'disable interrupts for 10 instructions' and 'test if interrupts are still disabled' instructions, and base your mutex implementation on that.
But you'll have to stop calling it futex at that point...
Or you could just optimize syscalls to be really fast... Pavel
-- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
| |