Professional Documents
Culture Documents
Process Control
SECTION A
Multiple Choice Questions
2. A starvation-free job scheduling policy guarantees that no job waits indefinitely for
service. Which of the following job-scheduling policies is starvation-free
a) Round-robin
b) Priority queuing
c) Shortest job first
d) Youngest job first
e) None of the above
SECTION B
Review Questions
2. Consider a workload with 5 jobs that each compute for an identical amount of time, x,
and that perform no I/O. To minimize the average waiting time of the jobs, should a
FCFS scheduler or a RR scheduler be used?
3. Assume that job A is running on the CPU. Describe two circumstances in which a SJF
scheduler will keep job A running, but a STCF scheduler will pick a different job.
5. Consider the following set of processes that arrive at time 0 with the length of CPU-burst
time given in milliseconds (ms).
i. Draw Gant charts to illustrate the execution of these processes using the
following algorithm and find out the average waiting time for each of them.
a. First-Come-First-Served(FCFS),
b. Shortest-Job-First(SJF)
ii. What is the average waiting time if the processes arrive in the order P2,P3,P1,P4
using the FCFS?
interrupt
Admitted Exit
New Ready Dispatch Running Terminated
process
I/O or Event
I/O or Event
Completion
Wait
Blocked
10. For each of the following transitions between process states indicate whether the
transition is possible or not possible?