Implement a Mutex using the atomic swap(variable, register) instruction in x86. Your mutex can use busy-spin. But
Fantastic news! We've Found the answer you've been seeking!
Question:
Implement a Mutex using the atomic swap(variable, register) instruction in x86. Your mutex can use busy-spin. But assume that you cannot access a register directly other than using this swap instruction.
Related Book For
Posted Date: