Professional KnowledgeHardIBPS SO IT

Two processes P and Q share variable X=0. P does X=X+1 and Q does X=X+1 (each: load, add, store) without synchronisation. Possible final values:

  1. A. Only 2
  2. B. 1 or 2
  3. C. Only 1
  4. D. 0, 1 or 2

Correct answer: B. 1 or 2

With interleaving, one update can be lost giving 1; otherwise 2.

More IT Officer Professional Knowledge (IBPS SO) questions

Exams that ask this topic