Sougata Jana - CSC407 - OS - 2nd - Year - CSE - SET3
Sougata Jana - CSC407 - OS - 2nd - Year - CSE - SET3
(Established by Act of State Govt. & u/s 22 of UGC Act, Ministry of HRD, Govt. of India)
University Examination
B.Tech, 2rd year, 4th Semester
Subject Code- CSC407 Total Marks-100
Subject Name- Operating System Time Duration -3hrs.
All the answers should be in brief and to the point.
Strike off all the blank pages of copy, after completing your work.
The students are advised not to write anything on the question paper other than Enrolment No.
1. a) Under what conditions the following state transition occurs with respect to a process?
I. Run to Ready.
II. Blocked (or wait) to Ready.
b) State the relative advantages and disadvantages of user level thread and kernel level thread [5+5]
2. a) A file system with 300 GByte uses a file descriptor with 8 direct block address. 1 indirect block address and 1 doubly
indirect block address. The size of each disk block is 128 Bytes and the size of each disk block address is 8 Bytes. The
maximum possible file size in this file system is?
b) An application loads 100 libraries at startup. Loading each library requires exactly one disk access. The seek time of
the disk to a random location is given as 10ms. Rotational speed of disk is 6000rpm. If all 100 libraries are loaded from
random locations on the disk, how long does it take to load all libraries? (The time to transfer data from the disk block
once the head has been positioned at the start of the block may be neglected). [5+5]
4. Consider the following snapshot of a system where r i (i=1...4) denote resource types and P1 to P5 denote processes.
The vector 'Available' has the usual meaning.
Process Current allocation maximum demand Available
r1 r2 r3 r4 r1 r2 r3 r4 r1 r2 r3 r4
P1 0 0 1 2 0 0 1 2 2 1 0 0
P2 2 0 0 0 2 7 5 0
P3 0 0 3 4 6 6 5 6
P4 2 3 5 4 4 3 5 6
P5 0 3 3 2 0 6 5 2
Answer the following questions using banker's algorithm
I. What is the content of need matrix?
II. Is the system currently in a safe state? If yes then find the safe states.
III. If the request for P3 arrives for (0,1,0,0) can the request be granted immediately? [3+3+4]
5. Suppose a disk drive has 300 cylinders, numbered 0 to 299. The current position of the desk arm is 90. The queue of
pending requests, in FIFO order is 36, 79, 15, 120, 199, 270, 89, 170. Calculate the average movements for the following
algorithms:
I. LOOK
II. C-SCAN
III. SCAN
IV. C-LOOK [4*2.5]
6. a) Explain the Dining philosopher problem with semaphore (pseudo code expected).
b) Differentiate between multiprogramming and multitasking OS. [8+2]
11. a) Write down the merits and demerits of a virtual memory system.
b) Consider a virtual memory system with combined implementation, segmentation and paging. Describe the address
translation scheme along with necessary data structures. [4+6]
12. Consider the following set of processes, with the length of the CPU-burst time given in millisecond:
--------------------------------------------------------------------The End-----------------------------------------------------------------