5 ms·
Please stop this madness of spinlocks in userspace. They are inefficient and conceptually incorrect for the absolute majority of applications. If you are.. *
by ameixaseca 4y ago
Please stop this madness of spinlocks in userspace.
They are inefficient and conceptually incorrect for the absolute majority of applications. If you are..
* not writing a kernel;
* not running your tasks with SCHED_FIFO and not running individual tasks pinned to individual cores;
.. then you should not even think about spinlocks. They will waste resources and perform very poorly.
Linus' rant [1] is not a rant but a detailed explanation of how real world process scheduling works, and should serve as a good reminder of what happens if you disregard basic computer science knowledge when writing software.
[1] https://www.realworldtech.com/forum/?threadid=189711&curpostid=189752 https://www.realworldtech.com/forum/?threadid=189711&curpost...