Operating Systems questions

Q11

GATE CS 2020 CSMemory ManagementMCQ1 mark−1/3 if wrong
Consider allocation of memory to a new process. Assume that none of the existing holes in the memory will exactly fit the process’s memory requirement. Hence, a new hole of smaller size will be created if allocation is made in any of the existing holes. Which one of the following statements is TRUE?
Show answer without attempting

Answer: C

Q12

GATE CS 2020 CSProcesses and ThreadsMCQ1 mark−1/3 if wrong
Consider the following statements about process state transitions for a system using preemptive scheduling.

I. A running process can move to ready state.
II. A ready process can move to running state.
III. A blocked process can move to running state.
IV. A blocked process can move to ready state.

Which of the above statements are TRUE?
Show answer without attempting

Answer: C

Q34

GATE CS 2020 CSConcurrency and SynchronizationMCQ2 marks−2/3 if wrong
Each of a set of nn processes executes the following code using two semaphores a and b initialized to 1 and 0, respectively. Assume that count is a shared variable initialized to 0 and not used in CODE SECTION P.
CODE SECTION P

wait(a); count=count+1;
if (count==n) signal(b);
signal(a); wait(b); signal(b);

CODE SECTION Q
What does the code achieve?
Show answer without attempting

Answer: A

Q35

GATE CS 2020 CSSchedulingMCQ2 marks−2/3 if wrong
Consider the following five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time.

(P, 155), (Q, 85), (R, 110), (S, 30), (T, 115)

Assume the head is positioned at cylinder 100. The scheduler follows Shortest Seek Time First scheduling to service the requests.

Which one of the following statements is FALSE?
Show answer without attempting

Answer: B

Q50

GATE CS 2020 CSSchedulingNAT2 marks
Consider the following set of processes, assumed to have arrived at time 0. Consider the CPU scheduling algorithms Shortest Job First (SJF) and Round Robin (RR). For RR, assume that the processes are scheduled in the order P1,P2,P3,P4P_1, P_2, P_3, P_4.
ProcessesP1P_1P2P_2P3P_3P4P_4
Burst time (in ms)8724
If the time quantum for RR is 4 ms, then the absolute value of the difference between the average turnaround times (in ms) of SJF and RR (round off to 2 decimal places) is __________.
Show answer without attempting

Answer: 5.25

Q53

GATE CS 2020 CSMemory ManagementNAT2 marks
Consider a paging system that uses 1-level page table residing in main memory and a TLB for address translation. Each main memory access takes 100 ns and TLB lookup takes 20 ns. Each page transfer to/from the disk takes 5000 ns. Assume that the TLB hit ratio is 95%, page fault rate is 10%. Assume that for 20% of the total page faults, a dirty page has to be written back to disk before the required page is read in from disk. TLB update time is negligible. The average memory access time in ns (round off to 1 decimal places) is __________.
Show answer without attempting

Answer: 154.5 to 155.5

0/60 correct0 marks

Related topics in GATE CS