Assignment-2 BCS303 OS
Assignment-2 BCS303 OS
1 State the dining philosopher’s problem and give a solution for the same, using L2 CO3 PO1
semaphores.
2 Consider the set of process with arrival time, CPU Burst time (in milliseconds) L2 CO2 PO1
and priority shown below (Lower number represents higher priority)
Process Arrival time Burst time Priority
P1 0 10 3
P2 1 1 1
P3 2 2 4
P4 3 1 5
P5 4 5 2
Write the Gantt Chart and sole average waiting time and average turnaround
time for i) SJF (Preemptive) ii) Priority (Preemptive)
Note: Consider Arrival time for both Algorithms
3 Explain Syntax and Schematic view of Monitors. L2 CO3 PO1
4 What is deadlock? What are the necessary conditions for the deadlock to occur? L2 CO3 PO2
How to prevent the occurrence of deadlock? Explain in detail.
5 Assume that there are 5 processes P0 through P4 and 4 types of resources.At L2 CO3 PO2
time T0 we have the following state:
6 Which are the commonly used strategies to select a free hole from the available L3 CO4 PO2
holes?
7 With neat diagram, explain paging hardware with TLB. L3 CO4 PO2
8 Explain structure of page table with respect to hierarchical paging. L2 CO4 PO2
14 Explain Contiguous and Linked disk space allocation methods with diagram. L4 CO5 PO3
CO ‘s Statement
CO 1 Describe the structure, functionality and services of operating system
CO 2 Apply appropriate CPU scheduling algorithms to evaluate its performance metrics.
CO 3 Illustrate the various techniques for process synchronization and deadlock handling.
CO 4 Apply the various page replacement algorithms for memory management.
CO 5 Explain the file and secondary storage management strategies for principles of protection