logoalt Hacker News

haileyslast Monday at 7:16 AM1 replyview on HN

Please just don't use spinlocks in userland code. It's really not the appropriate mechanism.

Your code will look great in your synthetic benchmarks and then it will end up burning CPU for no good reason in the real world.


Replies

nlylast Monday at 9:45 AM

Burning CPU is preferable in some industries where latency is all that matters.

show 3 replies