Course Name: Operating Systems (Os) Part A: Answer All Questions. Each Carries 2 Marks
Course Name: Operating Systems (Os) Part A: Answer All Questions. Each Carries 2 Marks
PART B
Answer all questions. Each carries 5 marks.
1. What are the measures to recover from a deadlock?
2. Explain the process creation in Unix with the help of suitable example.
What is a PCB (Process Control Block)?
3. Describe the differences among short-term, medium-term and long-term
scheduling?
4. With the help of a diagram, describe the actions taken by the kernel to context
switch between process?
5. Enumerate any three classical problems of synchronisation?
6. Discuss how Resource Allocation Graph can be used for deadlock avoidance?
PART C
Answer all questions. Each carries 10 marks.
1. a) Given six memory partitions of 100KB,500 KB,200 KB,300 KB,600 KB (in order),how
would the first-fit, best-fit and worst-fit algorithms place processes of size 212KB,417
KB,112 KB,426KB(in order). Rank the algorithms in terms of how efficiently they use
memory.
b) Consider a logical address space of 64 pages of 1024 words each, mapped onto a
physical memory of 64 frames.
a. How many bits are required in the logical address?
b. How many bits are required in the physical address?
2 a) Discuss the concept of Virtual File Systems?
b) Suppose that a disk drive has 200 cylinders numbered from 0 to 199.The disk is
currently servicing at cylinder 100 and the previous request was at cylinder 120.The
queue of pending requests in FIFO order is 23,89,132,42,187. Starting from the
current head position, what is the total distance(in cylinders) that the disk arm moves to
satisfy all the pending requests for each of the scheduling algorithms? i)FCFS ii)SSTF
iii)SCAN
3 a) Which are the different access methods of a file?
b) What are the different allocation methods of a file?
4 a) Consider the following segment table:
5. Draw the Gantt Chart , find the average waiting time for the following algorithms
i) FCFS ii) Pre-emptive Priority
iii)Non-pre emptive priority
Arrival Burst
Process Time(ms) time(ms) Priority
P1 0 8 4
P2 2 6 1
P3 2 1 2
P4 1 9 2
P5 3 3 3
*****