Question Description
Consider two processes P0 and P1 which shares a global variable ‘flag’. The value of flag is either 0 or 1 where 0 indicates “P0 is permitted to enter the critical-section” and 1 indicates for P1. Assume P0(i=0) and P1(i=1) are concurrent processes which are executing the following code with initial value of flag as 0.while (1){while( flag!=1);<critical section>flag = i-1;<remainder section>}If P0 starts executing first, which of the following holds by the above execution.a)Mutual exclusionb)Progressc)Bounded waitd)Both A and CCorrect answer is option 'D'. 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 Consider two processes P0 and P1 which shares a global variable ‘flag’. The value of flag is either 0 or 1 where 0 indicates “P0 is permitted to enter the critical-section” and 1 indicates for P1. Assume P0(i=0) and P1(i=1) are concurrent processes which are executing the following code with initial value of flag as 0.while (1){while( flag!=1);<critical section>flag = i-1;<remainder section>}If P0 starts executing first, which of the following holds by the above execution.a)Mutual exclusionb)Progressc)Bounded waitd)Both A and CCorrect answer is option 'D'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam.
Find important definitions, questions, meanings, examples, exercises and tests below for Consider two processes P0 and P1 which shares a global variable ‘flag’. The value of flag is either 0 or 1 where 0 indicates “P0 is permitted to enter the critical-section” and 1 indicates for P1. Assume P0(i=0) and P1(i=1) are concurrent processes which are executing the following code with initial value of flag as 0.while (1){while( flag!=1);<critical section>flag = i-1;<remainder section>}If P0 starts executing first, which of the following holds by the above execution.a)Mutual exclusionb)Progressc)Bounded waitd)Both A and CCorrect answer is option 'D'. Can you explain this answer?.
Solutions for Consider two processes P0 and P1 which shares a global variable ‘flag’. The value of flag is either 0 or 1 where 0 indicates “P0 is permitted to enter the critical-section” and 1 indicates for P1. Assume P0(i=0) and P1(i=1) are concurrent processes which are executing the following code with initial value of flag as 0.while (1){while( flag!=1);<critical section>flag = i-1;<remainder section>}If P0 starts executing first, which of the following holds by the above execution.a)Mutual exclusionb)Progressc)Bounded waitd)Both A and CCorrect answer is option 'D'. 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 Consider two processes P0 and P1 which shares a global variable ‘flag’. The value of flag is either 0 or 1 where 0 indicates “P0 is permitted to enter the critical-section” and 1 indicates for P1. Assume P0(i=0) and P1(i=1) are concurrent processes which are executing the following code with initial value of flag as 0.while (1){while( flag!=1);<critical section>flag = i-1;<remainder section>}If P0 starts executing first, which of the following holds by the above execution.a)Mutual exclusionb)Progressc)Bounded waitd)Both A and CCorrect answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of
Consider two processes P0 and P1 which shares a global variable ‘flag’. The value of flag is either 0 or 1 where 0 indicates “P0 is permitted to enter the critical-section” and 1 indicates for P1. Assume P0(i=0) and P1(i=1) are concurrent processes which are executing the following code with initial value of flag as 0.while (1){while( flag!=1);<critical section>flag = i-1;<remainder section>}If P0 starts executing first, which of the following holds by the above execution.a)Mutual exclusionb)Progressc)Bounded waitd)Both A and CCorrect answer is option 'D'. Can you explain this answer?, a detailed solution for Consider two processes P0 and P1 which shares a global variable ‘flag’. The value of flag is either 0 or 1 where 0 indicates “P0 is permitted to enter the critical-section” and 1 indicates for P1. Assume P0(i=0) and P1(i=1) are concurrent processes which are executing the following code with initial value of flag as 0.while (1){while( flag!=1);<critical section>flag = i-1;<remainder section>}If P0 starts executing first, which of the following holds by the above execution.a)Mutual exclusionb)Progressc)Bounded waitd)Both A and CCorrect answer is option 'D'. Can you explain this answer? has been provided alongside types of Consider two processes P0 and P1 which shares a global variable ‘flag’. The value of flag is either 0 or 1 where 0 indicates “P0 is permitted to enter the critical-section” and 1 indicates for P1. Assume P0(i=0) and P1(i=1) are concurrent processes which are executing the following code with initial value of flag as 0.while (1){while( flag!=1);<critical section>flag = i-1;<remainder section>}If P0 starts executing first, which of the following holds by the above execution.a)Mutual exclusionb)Progressc)Bounded waitd)Both A and CCorrect answer is option 'D'. Can you explain this answer? theory, EduRev gives you an
ample number of questions to practice Consider two processes P0 and P1 which shares a global variable ‘flag’. The value of flag is either 0 or 1 where 0 indicates “P0 is permitted to enter the critical-section” and 1 indicates for P1. Assume P0(i=0) and P1(i=1) are concurrent processes which are executing the following code with initial value of flag as 0.while (1){while( flag!=1);<critical section>flag = i-1;<remainder section>}If P0 starts executing first, which of the following holds by the above execution.a)Mutual exclusionb)Progressc)Bounded waitd)Both A and CCorrect answer is option 'D'. Can you explain this answer? tests, examples and also practice GATE tests.