225 views
0 votes
0 votes
How to decide in which question process will run completely and where preemption needs to be taken  while solving semaphore questions? Is there any predefined method?

1 Answer

1 votes
1 votes
context switching can take place at any instructions so there is no predefined method.you have to take various possibilities and check out the required answer. (you have to use your intuition while solving semaphore questions)

Related questions

0 votes
0 votes
0 answers
2
Arbaz__Malik asked Dec 25, 2021
607 views
given solution is wait(P) , wait(Q), wait(p) , wait(Q) for s1,s2,s3,s4 respectivelyI know this implementation is deadlock free just want to ask if it will follow bounded ...