CST206 Operating Systems, June 2023
CST206 Operating Systems, June 2023
$)
Course Code: CST206
Course Name: OPERATING SYSTEMS
Max. Marks: 100 Duration: 3 Hours
PART A
(Answer all questions; each question carries S
yy*g Marks
I what are the operations taking place when a system cail is executed? 3
2 what are multiprocessor systems? What are the advantages\of multiprocessor J
systems?
a
J Write the difference between process and thread. J
4 Differentiate between the two common models of interprocess communication. 5
5 Write the three requirements that a solution to critical-section problem must J
satisfo.
6 Explain the priority inheritance protocol for solving the priority inversion
problem.
PART B
(Answer onefull questionfrom each anodule, each question carries 14 molks)
Module -I
ll a) Explain the essential properties of the following types of operating systems: r0
i) Batch operating system
ii) Time sharing operating system
iii) Realtime operating system
iv) Distributed operating system
b) Explain the layered approach of the operating system structure.
Page I of 3
v
't
02000csT2060s2102
Module -2
l3 a) With the help of a diagram, explain the operations taking place when the CPU 7
b) Explain how the logical communication link is established and the messages are 7
system.
14 a) For the following set of processes draw the Gantt chart and find the average 9
Pl. 0 4
P2 1 2
P3 2 5
P4 3 4
I 5 a) Consider a system with four processes Pl, P2, P3, P4 and four types of resources 8
Rl, R2, R3, R4. The maximum number of instances of resources of each type
s a re 5, 7 , 7 and 7 respectively. What will be the order of
processing of jobs if th.e
allocated matrix and the maximum demiilA matrix are as given below.
RI R2 R3 R4 RI R2 R3 R{
PI 2 -) 2 J 5 6 4
P2 0 0 I 2 I J 4 6
I 4
P3 2 I
1 I 1
.P4 I 0 ? J
Page 2 of 3
't
02000csr206052102
l6 a) State dining philosopher's prcblem and give a solution using semaphores. Write 8
structure of philosopher.
b) Explain the methods for deadlock prevention. 6
Module -4
b) With the help of an example explain the concept of shared pages in a paging 5
system.
300K8, 600KB in the order and all these partitions are available. Suppose
Module -5
19 a) Explain FCFS, SSTF and SCAN disk scheduling algorithms, using the given 9
disk queue of requests: 20,89,130,45 and 180. Assume that, the disk has 200
r plaffers ranging from 0 to 199 and the current position of head is at cylinder 100.
b) Explain the different methods used for keeping track of free disk space. 5
20 a) There are 4 domains (Dl ,D2,D3, D4) and 4 objects (files - Fl,F2, F3, F4). A 7
n process executing in Dl can read and write files Fl, F3 and F4. A process in D4
can read Fl, & write F3 and executf,F2. A process inD2/D3can read F2
read
and execute F4. A process in Dl can switch to D2 or D4. A process in }1 can
switch to D3. Draw the access matrix showing all these details.
b) How can we make a new magnetic disk ready for use (to store files)? 7
tr**
Page 3 of 3