By: Anon (no.delete@this.spam.com), April 10, 2021 4:05 am
Room: Moderated Discussions
sr (nobody.delete@this.nowhere.com) on April 10, 2021 12:56 am wrote:
> It isn't there because it's a little hard to implement in hardware.
Or because it is dumb to implement in hardware.
"locked" means that thread is in effect suspended, there is no point to spent CPU cycles on it, but only software can say what to do while waiting for the lock to be released.
I know, you will say SMT, but surprise! There is a wait instruction for exactly that case!
> It isn't there because it's a little hard to implement in hardware.
Or because it is dumb to implement in hardware.
"locked" means that thread is in effect suspended, there is no point to spent CPU cycles on it, but only software can say what to do while waiting for the lock to be released.
I know, you will say SMT, but surprise! There is a wait instruction for exactly that case!