Os Model Exam
Os Model Exam
12. a) Consider the following set of processes, with the length of the CPU burst given in milliseconds.
Process Burst Time priority
P1 2 2
P2 1 1
P3 8 4
P4 4 2
P5 5 3
The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0.
a. Draw 4 Gantt charts that illustrate the execution of these processes using the following scheduling
alg.FCFS, SJF, non-primitive priority and RR(quantum=2).
b. What is the turnaround time of each process for each of the scheduling algorithms in part a?
c. What is the waiting time of each process for each of these scheduling algorithms?
d. Which of the algorithms results in the minimum average weight time (overall processes)?
(OR)
b. Explain about Semaphores and Monitors. (13)
14. a) Write detail notes on file system interface and file system structure. (13)
(OR)
b) Following are the references attempted to hard disks:67,22,78,34,21,78,99. Recommend a suitable disk
scheduling algorithm among FCFS, SSTF, SCAN and LOOK after applying all. Provide statements that support
your recommendation. (Note: Initial head position is at 20). (13)
15. a) present on outline of the types of virtual machines. Explain in detail. (13)
(OR)
b) i) Explain the architecture of Android OS. (6)
ii) Compare iOS with Android OS. (7)
PART C-Answer All (1x15=15 Marks)
16. a) Explain the various types of Page replacement algorithm with examples.
(OR)
b) Explain the various types of CPU scheduling algorithms with suitable examples.