I have read a lot of material on threading, and all the synchronization mechanisms involved. I also understand the dangers of not doing it properly.
I just watched th
Locks are often spinlocks, which cause a thread to "spin" doing no useful work when the lock is taken.
Doing nothing is expensive, since, as everyone knows: "time is money".