Sep - 2023 Operating Systems Questions
Q1) a) Describe the concepts of virtual machines with its implementation and benefits. Brief the
example of virtual machine. [7]
b) Define operating system. Explain basic functions of operating system. [8]
OR
Q2) a) Explain the following operating systems [5]
i) Batch OS
ii) Real time OS
b) Illustrate the difference between a micro Kernel and a layered Kernel architectures of operating
system with the help of neat diagrams. [5]
c) Write a shell script to find the factorial of a given number. [5]
Q3) a) Enlist different process states. Draw and explain process state transition diagram. [7]
b) Consider the following set of processes with the length of the CPU burst time given in
milliseconds.
Process | Arrival Time | Burst Time | Priority
P1 |0 |3 |2
P2 |1 |6 |1
P3 |4 |4 |3
P4 |6 |2 |4
Draw the Gantt charts illustrating the execution of these processes using priority (non-preemptive)
and SJF (preemptive) algorithms. Calculate average waiting time and average turnaround time. [8]
OR
Q4) a) Differentiate between user level threads and Kernel level threads. [5]
b) Why PCB is required? Explain the elements of PCB. [5]
c) Explain fork() and wait() system call in detail. [5]