Previous Lecture Complete and continue  

  When Should You Lock Threads?

In this lecture I'll demonstrate how a special technique called 'thread locking' resolves race conditions. I will show you several short examples of code prone to race conditions, and then I'll add thread locking to the code to fix the problem.