The LOCK — a race condition case

Hi there! Here is a brief overview of my struggles with an interesting (I think) race condition example. It has been taken from a…