Operating Systems KCS 401
Operating Systems KCS 401
B.TECH.
(SEM IV) THEORY EXAMINATION 2022-23
OPERATING SYSTEMS
Time: 3 Hours Total Marks: 100
Note: Attempt all Sections. If require any missing data; then choose suitably.
SECTION A
1. Attempt all questions in brief. 2 x 10 = 20
(a) Define two main functions of an operating system.
(b) Explain the principal advantages of multiprogramming.
(c) Define the term busy waiting.
(d) Define semaphore and its types.
(e) Explain starvation problem and its solution.
(f) Explain internal and external fragmentation.
(g) Explain thrashing and locality of reference.
(h) Distinguish between physical and logical address space of a process.
(i) Explain various operations associated with a file.
90
2
(j) Explain tree level directory structure.
13
_2
SECTION B
2.
P2
24
(a) Explain the following terms in detail:
3E
5.
(i) Multiprocessor operating system
.5
(ii) Real time system
P2
(b) For the following processes, draw Gantt chart to illustrate the execution using,
|1
(i) Preemptive priority scheduling
(ii) Non-Preemptive priority scheduling.
6
A 0 5 4
B 2 4 2
3
C 2 2 6
02
D 4 4 3
-2
(c) Consider the given snapshot of a system with five processes (P0,P1,P2,P3,P4) and three
08
resources (A,B,C).
Allocation MAX Available
0-
Process/Resource A B C A B C A B C
|1
P0 1 1 2 4 3 3 2 1 0
P1 2 1 2 3 2 2
P2 4 0 1 9 0 2
P3 0 2 0 7 5 3
P4 1 1 2 11 2 3
SECTION C
3. Attempt any one part of the following: 10x1=10
(a) Explain the term RAID and its characteristics. Also, explain various RAID levels with
their advantages and disadvantages.
(b) Explain the concept of file system management. Also, explain various file allocation and
file access mechanisms in details.
2
13
and uses:
_2
(i) FIFO replacement
2.
(ii) LRU replacement
P2
24
(iii) Optimal replacement
(b) Explain the terms hit ratio and miss ratio. On a simple paged system, associative registers
3E
5.
hold the most active page entries and the full-page table is stored in main memory. If
.5
P2
references satisfied by associative registers take 100ns, and references through main
17
memory page table takes 180 ns, what must the hit ratio be to achieve an effective access
Q
(b) Suppose the following disk request sequence (track numbers) for a disk with 100 tracks
is given: 45, 20, 90, 10, 50, 60, 80, 25, 70. Assume that the initial position of the R/W
3
(i) SSTF
(ii) SCAN
-2
(iii) CSCAN
08
(iv) LOOK
0-
(a) Explain Deadlock and necessary conditions for deadlock. Also, Explain resource
allocation graph with suitable diagram.
(b) Explain the followings:
(i) Buffering
(ii) Polling
(iii) Direct Memory Access (DMA)