Exercise

Enhance your understanding by getting hands-on practice ​with the exercise provided in this lesson!

We'll cover the following

Simulator

The program, x86.py, allows you to see how different thread interleavings either cause or avoid race conditions. See the previous lesson for details on how the program works, then press run on the code widget below. You will be able to see a terminal where you can run commands asked in the questions below.

Get hands-on with 1400+ tech skills courses.