Now, how many different values of X are possible after both processes finish executing ?
A. one
B. two
C. three
D. four
Answer:A
Now, how many different values of X are possible after both processes finish executing ?
A. one B. two C. three D. four
Explanation:The semaphore T ensures that all the statements from A finish execution before B begins. So now there is only one way in which statements from A and B can be interleaved: