Q14
The maximum number of processes that can be in Ready state for a computer system with CPUs is
Show answer without attempting
Answer: D
GATE CS · 15 questions
15 Operating Systems questions from GATE CS papers (2015), 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: D
/* other code for process X */
while (true)
{
varP = true;
while (varQ == true)
{
/* Critical Section */
varP = false;
}
}
/* other code for process X *//* other code for process Y */
while (true)
{
varQ = true;
while (varP == true)
{
/* Critical Section */
varQ = false;
}
}
/* other code for process Y */Answer: A
Answer: D
| Process | Arrival Time | Processing Time |
|---|---|---|
| A | 0 | 3 |
| B | 1 | 6 |
| C | 4 | 4 |
| D | 6 | 2 |
Answer: C
Answer: 4
P1() {
C = B - 1;
B = 2 * C;
}
P2() {
D = 2 * B;
B = D - 1;
}Answer: 3
Answer: 12
Answer: 14020
Answer: 10
Answer: A
Answer: 22
Answer: D
Answer: A
Answer: 6.1 to 6.2
Answer: 36
0/150 correct0 marks