Q29
With respect to deadlocks in an operating system, which of the following statements is/are FALSE?
More than one option can be correct.
Show answer without attempting
Answer: A, C
GATE CS · 126 questions
126 Operating Systems questions from GATE CS papers, each with the official answer key. Answer any question right here and it is marked straight away, or practise them one at a time.
Answer: A, C
Answer: 6
Answer: B, C
Answer: 77.3
int main () {
int i;
for (i = 0; i < 3; i++){
if (fork() == 0){
continue;
}
break;
}
printf("Hello!");
return 0;
}Answer: 4
Answer: 9.5
Answer: B
Wait(A);
Print(*);
X = X+1;
If (X == 2)
{
Print($);
Signal(B);
}
Signal(A);
Wait(B);
Print(#);
Signal(B);Answer: A, B, C
Answer: 16417
Answer: 1536
Answer: 3
Answer: A
int main()
{
int x=0,i=0;
scanf("%d",&x);
for(i=0; i<20; i++)
{
x = x+20;
printf("%d
",x);
}
return 0;
}Answer: 21
Answer: A
Answer: 65468
Answer: 6
Answer: D

Answer: D
Answer: C, D
Answer: 11
0/200 correct0 marks