3 ms·
Owner tracking and priority inheritance, anyone?
by 95014_refugee 4y ago
Owner tracking and priority inheritance, anyone?
- jimmyed 4y agoTo prevent priority inversion?
- cryptonector 4y agoYou can't have that with futexes. That would require a system call for every lock and unlock, not just for contended ones. It's a trade-off.
- EdSchouten 4y agoThat’s not true. Just create a 32 or 64 bit futex, and use that to let threads write their thread ID into it. https://www.kernel.org/doc/Documentation/pi-futex.txt https://www.kernel.org/doc/Documentation/pi-futex.txt
- cryptonector 4y agoBut the whole point here is to have teeny tiny futexes.