GATE Exam  >  GATE Questions  >  Two concurrent processes P1 and P2 want to us... Start Learning for Free
Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given below
Can deadlock occur in the above program?
  • a)
    deadlock is not possible
  • b)
    deadlock is not possible in P2
  • c)
    deadlock is possible
  • d)
    none of the above
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
Two concurrent processes P1 and P2 want to use resources R1 and R2 in ...
Yes deadlock is not possible because at least one process can enter into the critical section as it is mentioned in the question that initially both the resources are free. Thus, at least one process will execute in a critical section at a time and the resources used by that process will be set to busy & therefore another process will have to wait to use the critical section.
View all questions of this test
Explore Courses for GATE exam
Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given belowCan deadlock occur in the above program?a)deadlock is not possibleb)deadlock is not possible in P2c)deadlock is possibled)none of the aboveCorrect answer is option 'A'. Can you explain this answer?
Question Description
Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given belowCan deadlock occur in the above program?a)deadlock is not possibleb)deadlock is not possible in P2c)deadlock is possibled)none of the aboveCorrect answer is option 'A'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given belowCan deadlock occur in the above program?a)deadlock is not possibleb)deadlock is not possible in P2c)deadlock is possibled)none of the aboveCorrect answer is option 'A'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given belowCan deadlock occur in the above program?a)deadlock is not possibleb)deadlock is not possible in P2c)deadlock is possibled)none of the aboveCorrect answer is option 'A'. Can you explain this answer?.
Solutions for Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given belowCan deadlock occur in the above program?a)deadlock is not possibleb)deadlock is not possible in P2c)deadlock is possibled)none of the aboveCorrect answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given belowCan deadlock occur in the above program?a)deadlock is not possibleb)deadlock is not possible in P2c)deadlock is possibled)none of the aboveCorrect answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given belowCan deadlock occur in the above program?a)deadlock is not possibleb)deadlock is not possible in P2c)deadlock is possibled)none of the aboveCorrect answer is option 'A'. Can you explain this answer?, a detailed solution for Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given belowCan deadlock occur in the above program?a)deadlock is not possibleb)deadlock is not possible in P2c)deadlock is possibled)none of the aboveCorrect answer is option 'A'. Can you explain this answer? has been provided alongside types of Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given belowCan deadlock occur in the above program?a)deadlock is not possibleb)deadlock is not possible in P2c)deadlock is possibled)none of the aboveCorrect answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Two concurrent processes P1 and P2 want to use resources R1 and R2 in a mutually exclusive manner. Initially, R1 and R2 are free. The programs executed by the two processes are given belowCan deadlock occur in the above program?a)deadlock is not possibleb)deadlock is not possible in P2c)deadlock is possibled)none of the aboveCorrect answer is option 'A'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev