Re: [RFC] Userspace RCU: (ab)using futexes to save cpu cycles and energy

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mathieu Desnoyers
Date: Wednesday, September 23, 2009 - 4:28 pm

* Chris Friesen (cfriesen@nortel.com) wrote:

The mutex code (and usual futex users) use futex to implement mutual
exclusion.  My goal is to send a wakeup signal to a thread waiting for
work to perform when adding such work. But without any mutual exclusion.

So it is understandable that glibc code or futex sample code does not
cover that, given this use is, well, creative. ;)


Yes.. this is heavily dependent on the states and values which can be
reached. I should probably take time to create a promela model and run
that though the spin model checker to be sure.

Thanks for the comments,

Mathieu


-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Userspace RCU: (ab)using futexes to save cpu cycles ..., Mathieu Desnoyers, (Wed Sep 23, 10:48 am)
Re: [RFC] Userspace RCU: (ab)using futexes to save cpu cyc ..., Mathieu Desnoyers, (Wed Sep 23, 12:03 pm)
Re: [RFC] Userspace RCU: (ab)using futexes to save cpu cyc ..., Mathieu Desnoyers, (Wed Sep 23, 3:32 pm)
Re: [RFC] Userspace RCU: (ab)using futexes to save cpu cyc ..., Mathieu Desnoyers, (Wed Sep 23, 4:28 pm)
Re: [RFC] Userspace RCU: (ab)using futexes to save cpu cyc ..., Mathieu Desnoyers, (Sat Sep 26, 12:05 am)