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 can't be implemented safely
B
Spinlocks are always slower than atomics
C
Spinlocks cause data races
D
If the holder is descheduled, spinners burn CPU for a whole time slice; OS-aware mutexes park waiting threads