Nothing Special   »   [go: up one dir, main page]

CS4107 Operating System (End - SP19)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

BIRLA INSTITUTE OF TECHNOLOGY, MESRA, RANCHI

(END SEMESTER EXAMINATION)


CLASS: BE SEMESTER : IV
BRANCH: CSE SESSION : SP/19

SUBJECT: CS4107 OPERATING SYSTEM


TIME: 3:00 HOURS FULL MARKS: 60

INSTRUCTIONS:
1. The question paper contains 7 questions each of 12 marks and total 84 marks.
2. Candidates may attempt any 5 questions maximum of 60 marks.
3. The missing data, if any, may be assumed suitably.
4. Before attempting the question paper, be sure that you have got the correct question paper.
5. Tables/Data hand book/Graph paper etc. to be supplied to the candidates in the examination hall.
----------------------------------------------------------------------------------------------------------------------------------

Q.1(a) What is the purpose of system calls? Explain with an example. [2]
Q.1(b) How does file system keep track of free spaces? Elaborate how free space management is done? [4]
Q.1(c) Describe the essential properties of the following types of operating systems: [6]
(i) Batch (ii) Time sharing (iii) Real time (iv) Parallel (v)Distributed

Q.2(a) What advantage is there in having different time quantum sizes on different levels of a multilevel [2]
queuing system?
Q.2(b) Distinguish among the following three levels of scheduler. [4]
(i) High level scheduler
(ii) Intermediate level scheduler
(iii) Dispatcher
Q.2(c) Consider the following set of processes, with the length of the CPU-burst time given in milliseconds [6]
(A LARGER priority number has a higher priority):
Process Arrival Time Burst time Priority
P1 0 6 4
P2 3 5 2
P3 3 3 6
P4 5 5 3
Draw the Gantt chart circulate waiting time and turnaround time using i) FCFS ii) Preemptive priority
scheduling algorithm

Q.3(a) Consider a logical address space of 64 pages of 1,024 words each, mapped onto a physical memory of [2]
32 frames.
i) How many bits are there in the logical address?
ii) How many bits are there in the physical address?
Q.3(b) Given the memory partitions of 100K, 500K, 200K, 300K, and 600K apply First fir and last fit algorithm [4]
to place 212K, 417K, 112K, 426K.
Q.3(c) Discuss how fragmentation manifests itself in each of the following types of virtual memory system? [6]
(i) Paging
(ii) Segmentation
(iii) Combined segmentation and paging

Q.4(a) Suppose the bus between memory and secondary storage is experiencing heavy page traffic. Does this [2]
imply thrashing? Explain.
Q.4(b) Explain why Demand paging can significantly affect the performance of a computer system. [4]
Q.4(c) Given that main memory is composed of three page frames for public use and that a program requests [6]
pages in the following order: a b a c a b d b a c d
i) Using the FIFO page removal algorithm, do a page trace analysis indicating page faults with asterisks
(*). Then compute the failure and success ratios.
ii) Using the LRU page removal algorithm do a page trace analysis and compute the failure and success
ratios.
iii) Which is better? Why do you think it’s better? Can you make a general statement from this example?
Why or why not?

PTO
Q.5(a) Is disk scheduling, other than FCFS scheduling, useful in a single user environment? Explain your [2]
answer.
Q.5(b) Could a RAID level 1 organization achieve better performance for read requests than a RAID level 0 [4]
organization (with non redundant striping of data)? If so, how?
Q.5(c) Suppose that a disk drive has 5000 cylinders, numbered 0 to 4999. The drive is currently serving a [6]
request at cylinder 143 and the previous request was at cylinder 125. The queue of pending requests,
in FIFO order is,
86, 1470, 913, 1774, 948, 1509, 1022, 1750, 130.
What is the total distance the disk arm moves to satisfy all the pending requests for each of the
following disk scheduling algorithms from current position i) FCFS ii) SCAN iii)LOOK

Q.6(a) What are the major differences between deadlock, starvation and race? Give some real life examples [2]
(not related to a computer system environment) of deadlock, starvation and race.
Q.6(b) Prove that the safety algorithm requires an order of m × n2 operations. [4]
Q.6(c) Consider the following snapshot of a system: [6]
Allocation Max Available
ABCD ABCD ABCD
P0 0 0 12 0012 1520
P1 1 0 00 1750
P2 1 3 54 2356
P3 0632 0652
P4 0014 0656
Answer the following questions using the banker’s algorithm:
i) What is the content of the matrix Need?
ii) Is the system in a safe state?
iii) If a request from process P1 arrives for (0,4,2,0), can the request be granted immediately?

Q.7(a) What is critical-section problem? How semaphores are helpful in solving this problem? [2]
Q.7(b) Explain the security problem. What are the levels on which the security measures are to be taken? [4]
Q.7(c) Does Peterson’s solution to mutual exclusion problem work when process scheduling is preemptive. [6]
How about when it is non preemptive.

::::::01/05/2019::::::E

You might also like