News for hackers. Stuff that matters.
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.

Re:Spinning around: Please don't – Common problems with spin... by Lectem on Thursday January 29, 2026 @02:48AM (#46807055)
That's a spin loop ;)
Re:Spinning around: Please don't – Common problems with spin... by m-schuetz on Thursday January 29, 2026 @03:11AM (#46807197)
I see, thanks.