2,520 views

1 Answer

3 3 votes

answer should be D

Option A)say we execute S1 that is DOWN on P then process P1 is preempted and P2 start execution so DOWN on Q

Now both P1 ans P2 are stuck as they cant do down on either P or Q so DEADLOCK may occure .

Option B) here if any of process either P1 or P2 do DOWN on P then it will get chance to access CS but can it gurentee the Bounded wait ??...it will not ..say P1 does DOWN on P now P2 cant do anything ,so it will wait ..now P1 can do Down on Q ..enter into CS and again Up on P and Q but there is no gurantee that P2 will do down on P ..it may possible that P1 again do this down on P ..and may run many times ...so BOUNDED WAIT DEFINATELY  ABSENT

Option C)P1 does down on Q then P2 will DOWN on P ..so again deadlock ...so it cant be option

Option D) Correct ...none of above gurantee "ME,BW,PROGRESS"

Position:
Show:

Related questions

3 3 votes
4 4 answers
2.9k
2.9k views
2 2 votes
0 0 answers
575
575 views
RUPALI_SHAHAPURE asked Nov 15, 2024
575 views
Consider a counting semaphore s1 initialized to two. The binary semaphore s2 is initialized to one. There are three processes executing the following code segment concurr...