9 ms·
Optimizing a Spin-Lock
- hn4e309qn4 10d ago[dead]
- dalvrosa 10d agoA spin-lock is a lock that never sleeps. Instead of yielding to the scheduler, the thread stays on the CPU and spins. No syscalls. No context switches. In this post, we’ll build a version, step by step, that is 5.7x faster while drawing 5.4x less energy.
- hnacobsxph 10d agoNice article
- dalvrosa 10d agoThanks!
- hnrprtlpdb 10d ago[dead]