Exercise: detect a data race

Exercise

 

Solution