Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 10
Why is a spinlock usually a bad idea in user-space Rust?
A
If the holder is descheduled, spinners burn CPU for a whole time slice; OS-aware mutexes park waiting threads
B
Spinlocks can't be implemented safely
C
Spinlocks are always slower than atomics
D
Spinlocks cause data races