202 views
0 votes
0 votes

Consider the following ‘C’ code

Assume P1 and P2 are two concurrent processes and sharing the global variables xy and z. Assignments
and tests are atomic. Consider the following statements :
S1 : P1 and P2 terminates                           S2 : P1 terminates but P2 does not
S3 : P2 terminates but P1 does not            S4 : Neither P1 nor P2 terminates
The number of statements correct about code of P1 and P2 is __________ .

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1