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.

Written by

Open source, Mobile, Web, Cloud, Server - Independent Information Technology and Services Professional http://yoramkornatzky.com kornatzky@gmail.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store