Re: atomic RAM ?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Machek
Date: Monday, April 12, 2010 - 5:54 am

Hi!


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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
atomic RAM ?, Michael Schnell, (Thu Apr 8, 12:32 am)
Re: atomic RAM ?, Michael Schnell, (Thu Apr 8, 2:52 am)
Re: atomic RAM ?, Michael Schnell, (Thu Apr 8, 3:12 am)
Re: atomic RAM ?, Alan Cox, (Thu Apr 8, 3:45 am)
Re: atomic RAM ?, Michael Schnell, (Thu Apr 8, 5:11 am)
Re: atomic RAM ?, David Miller, (Thu Apr 8, 5:14 am)
Re: atomic RAM ?, Michael Schnell, (Thu Apr 8, 5:30 am)
Re: atomic RAM ?, Alan Cox, (Thu Apr 8, 6:37 am)
Re: atomic RAM ?, Arnd Bergmann, (Thu Apr 8, 7:15 am)
Re: atomic RAM ?, Mike Frysinger, (Thu Apr 8, 6:36 pm)
Re: atomic RAM ?, Michael Schnell, (Fri Apr 9, 2:23 am)
Re: atomic RAM ?, Michael Schnell, (Fri Apr 9, 3:54 am)
Re: atomic RAM ?, Michael Schnell, (Fri Apr 9, 3:55 am)
Re: atomic RAM ?, Alan Cox, (Fri Apr 9, 4:54 am)
Re: atomic RAM ?, Michael Schnell, (Fri Apr 9, 5:53 am)
Re: atomic RAM ?, Michael Schnell, (Fri Apr 9, 6:14 am)
Re: atomic RAM ?, Alan Cox, (Fri Apr 9, 6:15 am)
Re: atomic RAM ?, Michael Schnell, (Fri Apr 9, 6:32 am)
Re: atomic RAM ?, Michael Schnell, (Mon Apr 12, 2:58 am)
Re: atomic RAM ?, Pavel Machek, (Mon Apr 12, 5:54 am)
Re: atomic RAM ?, Arnd Bergmann, (Mon Apr 12, 8:02 am)
Re: [Nios2-dev] atomic RAM ?, Michael Schnell, (Tue Apr 13, 1:39 am)
Re: atomic RAM ?, Michael Schnell, (Tue Apr 13, 3:11 am)
Re: atomic RAM ?, Michael Schnell, (Wed Apr 14, 1:42 am)
Re: atomic RAM ?, Michael Schnell, (Wed Apr 14, 5:46 am)
Re: atomic RAM ?, Alan Cox, (Wed Apr 14, 5:57 am)
Re: atomic RAM ?, Michael Schnell, (Wed Apr 14, 7:38 am)