Subjects Subjects About Login

OS : 2012 GATE Questions

Questions : 3


QID : 246GATE-2012, 1M

a process executes the code:

fork();
fork();
fork();

The total number of child processes created is

Options:
A) 3
B) 4
C) 7
D) 8
Ans : Option C
Solution :
QID : 250GATE-2012, 2M

Consider the 3 processes, P1, P2 and P3 shown in the table. The completion order of the 3 processes under the policies FCFS and RR2 (round robin scheduling with CPU quantum of 2 time units) are

Options:
A) FCFS: P1, P2, P3
RR2: P1, P2, P3
B) FCFS: P1, P3, P2
RR2: P1, P3, P2
C) FCFS: P1, P2, P3
RR2: P1, P3, P2
D) FCFS: P1, P3, P2
RR2: P1, P2, P3
Ans : Option C
Solution :
QID : 247GATE-2012, 2M

Consider the virtual page reference string

1, 2, 3, 2, 4, 1, 3, 2, 4, 1

On a demand paged virtual memory system running on a computer system that main memory size of 3 pages frames which are initially empty. Let LRU, FIFO and OPTIMAL denote the number of page faults under the corresponding page replacements policy. Then

Options:
A) OPTIMAL < LRU < FIFO
B) OPTIMAL < FIFO < LRU
C) OPTIMAL = LRU
D) OPTIMAL = FIFO
Ans : Option B
Solution :
 

Have a Question?


Submit Here

Previous GATE Papers


Year Key Organized by
2019 Key IIT Madras
2018 Key IIT Guwahati
2017(Set1) Key IIT Roorkee
2017(Set2) Key IIT Roorkee
2016(Set1) Key IISc
2016(Set2) Key IISc
Show All