Question 13
Assume that context switches can occur at any time during the execution of the following code snippet. The variable counter is shared between two programs. Which of the following can be the possible final values of counter?
Initial value of counter
# Program AR1 = counterR1 = R1 + 10counter = R1
# Program BR2 = counterR2 = R2 - 30counter = R270
80
90
100
110
120