Comment-OP here - this is also more or less my use case.
Whether there is a use case for spinlocks outside low-latency trading, i have no idea!
Re:Mutexes are faster than Spinlocks
by AstralStorm on Saturday January 04, 2020 @10:51PM
(#21959511)
Software industrial process control, such as motors and let robotics. The longer latencies make the control loop less responsive or unstable. Microseconds granularity is very useful there.
Re:Mutexes are faster than Spinlocks
by anonymoushn on Saturday January 04, 2020 @02:15PM
(#21956748)
a friend of mine recently told me how Windows schedules cpu-bound threads to different cores to prevent thermal throttling, so I now wonder if we were mucking things up by running our CPUs too hot
If you weren't pegging thermal max you shouldn't be seeing thermal limiting. Although you're probably right that cooling is something software people are more likely overlook than SRE/hardware/lab folks.
Liquid cooling is not unheard of in the low latency trading world.
I wrote some software at an automated trading firm that would do the subset of "parsing ticks and maintaining order books" sufficient to map ticks to symbols, and no more work than that. My code was pinned to one core and spun waiting for an expensive network card to DMA some ticks into memory, then when ticks we cared about were found it would load them onto one or more queues. Each queue corresponded to a different thread spin waiting on its own pinned core.
So one use case is "transforming ticks into trading decisions slightly faster than you otherwise could"