1 min readApr 15, 2019
Two processes run concurrently (in parallel). If they both change some global variable that is shared. Who is writing it first? And what will the other see? What if they both first read the value of the variable, compute something based on it, and then write it again. What is the value of the variable? Multiple possibilities can occur.