Q8
A process executes the code
fork();
fork();
fork();The total number of child processes created is
Show answer without attempting
Answer: C
GATE CS · 5 questions
5 Operating Systems questions from GATE CS papers (2012), each with the official answer key. Answer any question right here and it is marked straight away, or practise them one at a time.
fork();
fork();
fork();Answer: C
| Process | Arrival time | Time Units Required |
|---|---|---|
| P1 | 0 | 5 |
| P2 | 1 | 7 |
| P3 | 3 | 4 |
Answer: C
AcquireLock(L){
while (Fetch_And_Add(L,1))
L = 1;
}
ReleaseLock(L){
L = 0;
}Answer: B
Answer: B
Answer: B
0/50 correct0 marks