716 views

1 Answer

0 votes
0 votes
First do check for mutual exclusiveness. Then do for bounded waiting and progress. Its not difficult to do- in coming week we will take on all previous questions given below and the same technique should work in almost all of them.

https://gateoverflow.in/tag/process-synchronization

Related questions

1.6k
views
3 answers
2 votes
Sambhrant Maurya asked Jan 3, 2019
1,572 views
P1 terminates but P2 does notP2 terminates but P1 does notBoth P1 and P2 terminateNeither P1 nor P2 terminate
1.6k
views
2 answers
1 votes
Pankaj Joshi asked Jan 23, 2017
1,580 views
Consider the following ‘C’ codeAssume P1 and P2 are two concurrent processes and sharing the global variables x, y and z. Assignmentsand tests are atomic. Consider th...
767
views
0 answers
0 votes
sripo asked Dec 20, 2018
767 views
i=1,j=1;For this code how many different basic blocks are there?Do we have to add begin and exit as two separate blocks?In some test series for above two linesi=1 is take...
1.1k
views
0 answers
4 votes
atulcse asked Jan 19, 2022
1,065 views
Consider the following proposed solution to Dining Philosopher’s problem to avoid deadlock. The binary semaphore lock is initialized to 1.Which of the following is corr...