Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
Thanks for this excellent article!
I have a fundamentally question! :D
Is any way to use RCU on userland programs? I mean, any lib or implementation of this
constraints in userland?
Thanks and regards!
Using RCU in userland
Posted Jan 4, 2008 18:13 UTC (Fri) by PaulMcKenney (subscriber, #9624)
In addition, I vaguely recall at least one user-level RCU implementation being posted on LKML as a programming/debugging aid. There are some others that I am unfortunately unable to release at this time.
As noted in an earlier comment, garbage-collected languages automatically provide much of the wait-for-reader functionality for free -- however, it is still necessary to correctly handle the publish-subscribe operation correctly. One way to do this in Java is to use the recently added "volatile" field specifier (no relation to "volatile" in C/C++) for the pointer that is being published. In other words, instead of using the Linux-kernel rcu_assign_pointer() and rcu_dereference() to publish and subscribe, you instead mark the pointer itself using Java's "volatile" keyword.
Posted Jan 4, 2008 20:08 UTC (Fri) by eduardo.juan (guest, #47737)
Thanks Paul for answering! I'll be trying it!
Posted Jan 5, 2008 16:26 UTC (Sat) by PaulMcKenney (subscriber, #9624)
Very cool! Please let me know how it goes!
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds