Synchronisation
Threads that update shared data race unless a mutex or semaphore makes the update atomic, and taking locks in different orders can deadlock.
Threads that update shared data race unless a mutex or semaphore makes the update atomic, and taking locks in different orders can deadlock.