Consider the following schedule on data object Q, whose initial value is 500.…

RPSC Programmer 2024

Consider the following schedule on data object Q, whose initial value is 500. What will be the final value of Q after the last operation?

1. T1: Read(Q)
2. T2: Read(Q)
3. T1: Q = Q + 100
4. T2: Q = Q + 100
5. T2: Write(Q)
6. T1: Write(Q)

  1. A.

    600

  2. B.

    700

  3. C.

    550

  4. D.

    500

  5. E.

    Question not attempted

Attempted by 541 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…