in Operating System
532 views
0 votes
0 votes

Suppose 2 process P1 and P2 are as follows:

in Operating System
532 views

3 Comments

it will print (ab+ba)*

but it is given in execution "Execution order is 1st P1 then P2", then answer should be (abba)*, but this is incorrect, there is actually no such order possible.

1
1


There assumption is incorrect how can we assume like that 

0
0
yes, that's what i said.
0
0

2 Answers

0 votes
0 votes
a and c are correct answers

4 Comments

edited by
both semaphore variables initialized  to 1 then P2 may be executed before P1 then sequence will be “baab” and it is not there in C
0
0
But it is possibility
0
0
we will have to consider it also
0
0
0 votes
0 votes
Correct option: D none of these

String pattern generated is : ab(ab+ba)*

Related questions