Re:Spinning around: Please don't – Common problems with spin...
by m-schuetz on Thursday January 29, 2026 @02:26AM
(#46806913)
Recently implemented a fixed-size memory pool with spinlocks and now I'm wondering - how would one implement them without a spinlock?
Edit: Maybe I'm confusing terminology. What I'm doing is looping until other threads returned memory, but I'm also doing a short sleep during each loop iteration.
Edit: Maybe I'm confusing terminology. What I'm doing is looping until other threads returned memory, but I'm also doing a short sleep during each loop iteration.