VTU Computer Science (Semester 5)
Operating Systems
June 2012
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) What is an Opeating System? Bring out the requirements of.
(i) Real time operating systems
(ii) Distributed operating systems.
10 M
1 (b) What are system calls? Explain the different categories of the system calls.
10 M

2 (a) Explain the process state with a diagram. What is the need for a context switch?
7 M
2 (b) What are the differences between user level threads and kernal supported threads?
5 M
2 (c) For the following example calculate average waiting time and average turn around time by using FCFS, preemptive SJF and RR (1 time unit) CPU scheduling algorithms.
Jobs Arrival time Brust time
P1 0 8
P2 1 4
P3 2 9
P4 3 5
8 M

3 (a) What is critical section problem? How does a semaphore solve the critical section problem? Discuss whether semaphore satisfy the three requirements for a solution to the critical section problem.
8 M
3 (b) What are monitors? Explain with an example program request.
4 M
3 (c) Describe the monitor solution to the classical dining philospher's problem.
8 M

4 (a) What is deadlock? Explain the necessary conditions for its occurrence.
6 M
4 (b) Explain with an example how resource allocation graph is used to describe the deadlock.
6 M
4 (c) System consists of five processes (P0, P1, P2, P3, P4) and three source (R1, R2, R3). Resouce type R1 has 10 instances, resources type R2 has 5 instances and R3 has 7 instances. THe following snapshot of the system has been take:
Jobs Allocation Max Available
R1 R2 R3 R1 R2 R3 R1 R2 R3
P0 0 1 0 7 5 3 3 3 2
P1 2 0 0 3 2 2
P2 3 0 2 9 0 2
P3 2 1 1 2 2 2
P4 0 0 2 4 3 3

Calculate the content of matrix need and find out safe sequence by using Banker's algorithm.
8 M

5 (a) Distinguish between:
(i) Logical address space and physical address space
(ii) Internal fragmentation and external freagmentation
(iii) Paging and segmentation
6 M
5 (b) Explain with the help of supporting hardware diagram how the TLB improves the performance of a demand paging system.
10 M
5 (c) Given memory partitions of 100 k, 500 k, 200 k, 300 k and 600 k (in order) how would each of the first fit, best fit and worst fit algorithms work place processes of 212 k, 417 km, 112 k and 426 k (in order)? Which algorithm makes the most effiecient use of memory?
4 M

6 (a) Explain the different types of files.
5 M
6 (b) Name the different file allocation methods. Explain the linked allocation of file implementation with merits and demetis.
8 M
6 (c) Define file system. Explain the different directory structure.
7 M

7 (a) What is disk scheduling? Explain any three disk scheduling methods with examples.
10 M
7 (b) What is swap space management? Explain.
5 M
7 (c) What is access matrix? Explain the access matrix with domains as objects.
5 M

Write short notes on the following :-
8 (a) Process management in Linux.
6 M
8 (b) Page replacement algorithms.
8 M
8 (c) Steps in handling a page fault.
6 M



More question papers from Operating Systems
SPONSORED ADVERTISEMENTS