a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by briandmyers

Good point. I try to use inline assembler for cases like that, if possible. Often you can make a very efficient semaphore with the proper assembler instruction.