Categories

Operating systems

CSE - Operating systems - Questions and solutions
Question:-
Option (A)
Kernel mode
Option (B)
Super user mode
Option (C)
Privileged mode
Option (D)
All of these
Correct Option:
D
Question Solution:
Kernel mode. Supervisor Mode, Privileged mode, all are same.
Question:-
Option (A)
1
Option (B)
2
Option (C)
3
Option (D)
4
Correct Option:
B
Question Solution:
From Gantt Chart

Total context switches = 4
but we don't count context switches at time zero and end.
So Number of context switches = 4-2 = 2
Question:-
Option (A)
(n-1)q units
Option (B)
nq units
Option (C)
(q-1)n units
Option (D)
(q+1)n units
Correct Option:
A
Question:-
Option (A)
1 4 3 2
Option (B)
2 1 3 4
Option (C)
3 4 1 2
Option (D)
1 4 3 2
Correct Option:
C
Question Solution:
List-I
A. Run-ready
B. Run-bloked
C. Blocked-run
D. Run-terminated
List-II
3. When a progarm time quantum expired
4. When process issue I/O request
1. Not possible
2. When a process terminate itself
Question:-
Option (A)
thrashing
Option (B)
formatting
Option (C)
spooling
Option (D)
booting
Correct Option:
A
Question Solution:
When OS wastes a much time in the I/O instead of execution, so C P U utilization decreases, that is known as thrashing.