Example of deadlock and race conditions:
An example of a race condition:
lock mutex 1 lock mutex 2
lock mutex 2 lock mutex 1
Time 2 Context switch to Thread B
Time 4 Context switch to Thread A
From THREADTIME: by Norton/Dipasquale Prentice-Hall.
Author | Title | Tracks | Home