Re:Proposed futex2 allows Linux to mimic the NT kernel for b...
by xxs on Wednesday April 28, 2021 @02:03PM
(#26972226)
>"context switch to and from the kernel"
This is a common misconception, a "context" switch is a lot more expensive than a "mode" switch that goes from user mode to the kernel mode (and back).
Of course, if the futex has to wait, it'd be a context switch for real.
This is a common misconception, a "context" switch is a lot more expensive than a "mode" switch that goes from user mode to the kernel mode (and back).
Of course, if the futex has to wait, it'd be a context switch for real.