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