Mca 2 Sem Operating Systems Kca203 2023
Mca 2 Sem Operating Systems Kca203 2023
MCA
(SEM II) 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
2
(i) What do you mean by file directories? Explain.
13
_2
(j) Define link file allocation method.
2.
P2
24
SECTION B
3E
5.
.5
2. Attempt any three of the following: 10x3=30
P2
(b) What is semaphore? Classify the semaphore with their synchronization code.
|1
(c) Define the following terms:-
(i) Dispatcher
8
:5
how would the ‘first-fit, best-fit & worst-fit’ shall place processes of size 212,
02
417, 112, & 426 ((all in KB). Deduce the most efficient memory management
-2
technique
(e) Discuss in detail the ‘Linked, Contiguous, Index & Multi-level Indexing’ file
08
allocation schemes.
3-
|0
SECTION C
3. Attempt any one part of the following: 10x1=10
(a) Define Process. Explain various steps involved in change of process state with
neat transition diagram.
(b) What is the purpose of the System Calls or Application Programming Interface
(APIs).Enumerate five system calls used in process management or file
management?
(a) Consider three processes, all arriving at time zero, with total execution time of
10, 20 and 30 units respectively. Each process spends the first 20% of execution
time doing I/O, the next 70% of time doing computation, and the last 10% of
time doing I/O again. The operating system uses a shortest remaining compute
time first scheduling algorithm and schedules a new process either when the
running process gets blocked on I/O or when the running process finishes its
compute burst. Assume that all I/O operations can be overlapped as much as
possible. For what percentage of does the CPU remain idle?
1. 0%
2. 10.6%
3. 30%
4. 89.4%
(b) Consider the set of 4 processes whose arrival time and burst time are given
below- 90
2
13
Process Arrival Priority Burst Time
_2
No. Time
2.
CPU Burst I/O Burst CPU Burst
P2
24
3E
P1 0 2 1 5 3
5.
.5
P2
P2 2 3 3 3 1
17
Q
|1
P3 3 1 2 3 1
8
:5
waiting time and average turnaround time. (Lower number means higher
:
priority)
08
3
02
-2
08
3-
|0
2
pending request for each of the following disk scheduling algorithms?
13
_2
(i) SSTF
2.
(ii) FCFS
P2
24
(b) Write short note on(any three):
3E
(i)I/O buffering
5.
(ii) Disk storage & scheduling
.5
P2
|1
8
:5
: 48
08
3
02
-2
08
3-
|0