User: Password:
|
|
Subscribe / Log in / New account

Adaptive spinning futex implementation

Adaptive spinning futex implementation

Posted May 18, 2010 1:45 UTC (Tue) by vomlehn (subscriber, #45588)
In reply to: Adaptive spinning futex implementation by dvhart
Parent article: Adaptive spinning futexes

Yes, you allocated the memory anyway you wanted, but using shared memory reduced the amount of work the kernel had to do because it could update the process' states in only one place. Plus you needed shared memory for the spinlock part anyway. You're right about pinning the memory, too. We updated the state in the scheduler, so you couldn't go to sleep while the memory was paged in.


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds