DICT 18.1P Operating Systems
DICT 18.1P Operating Systems
1. Construct Gantt chart for CPU scheduling using the algorithms given below and
calculate the Average Waiting Time and Average Turnaround Time of each Process (20
Marks)
1) FCFS
2) SJF non preemptive
3) Priority non preemptive
4) Round Robin Time Quantum 4 ms
1. Given the memory Partitions of 120K, 600K,50K,300K, 250K and 600K (in order),
how would each of the following algorithms place processes of 112K, 520K,225K,
30K,426K and 155K (in Order)? Which algorithm makes the most efficient use of
memory? (10 Marks)
i. First Fit
ii. Best Fit
iii. Worst Fit
2. Describe the paging algorithm and transform the values from logical memory to
the physical memory. Page size = 8 bytes, Physical memory =40 bytes (10 Marks)
Page 1 of 3
0 A0
7 A7
8 B0 0 1
. 1 2
. 2 4
15 B7 3 0
page
16 C0 table
23 C7
24 D0
31 D7
logical
memory
1. A hard disk with read/ write head is currently serving a request at track 65 and has
just finished a request at track 155.
Consider the sequence 18, 137, 154, 12, 72, 191, 28, 69, 145 of disk track requests,
draw three sets of graphs clearly indicating following disk scheduling algorithms
and calculate the total head movement required for each algorithm. (20 Marks)
a) FCFS
Page 2 of 3
b) SSTF
c) SCAN
d) C SCAN
1. Draw a Resource Allocation Graph for the following process descriptions and check
for the possibility of a deadlock.(All resources types have one instance each) (5 Marks)
2. Consider the following file directories and show the file allocation on a hard disk with
4sectors and 8 tracks, by using following methods.
Question 5 – 20 Marks
1. Discuss the Process States using a Process State Diagram (5 marks)
2. Define “Burst time” (5 Marks)
3. Explain the features/ Characteristics of a Distributed Operating System (5 Marks)
4. Discuss what is compaction in memory (5 Marks)
Page 3 of 3