title: what is value of x for load and store
body: <p>This is some challenge</p>
  
  <p>On a single processor system, in which load and store are assumed to be
  atomic, what are all the possible values for x after both threads have completed in
  the following execution, assuming that x is initialised to O? Hint: you need to
  consider how this code might be compiled into machine language.</p>
  
  <p>for (int i = 0; i &lt; 5; i++) :
  x = x + 1;</p>
  
  <p>for (int j = 0; j &lt; 5; j++) :
  x = x + 1;</p>