Question 21
EasyUnder SJF scheduling, three jobs with CPU bursts of 7, 3 and 5 ms arrive at time 0. Which job runs first?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Under SJF scheduling, three jobs with CPU bursts of 7, 3 and 5 ms arrive at time 0. Which job runs first?
The job that arrived first
The 7 ms job
The 3 ms job
The 5 ms job
Sign up free to see the answer and a step-by-step explanation.
In priority scheduling where a smaller number means higher priority, which process runs first among three with priorities 3, 1 and 4?
They share the CPU equally
The process with priority 1
The process with priority 4
The process with priority 3
Sign up free to see the answer and a step-by-step explanation.
Which scheduling algorithm is designed especially for time-sharing systems?
First-Come, First-Served
Longest Job First
Round Robin
Shortest Job First
Sign up free to see the answer and a step-by-step explanation.
What happens in Round Robin if the time quantum is made very small?
Context-switch overhead becomes very large
Processes never get the CPU
Throughput always increases
It turns into Shortest Job First
Sign up free to see the answer and a step-by-step explanation.
What is a CPU burst?
A sudden power failure
A crash of the CPU
A burst of network traffic
A period during which a process uses the CPU continuously
Sign up free to see the answer and a step-by-step explanation.
What is the main idea of multilevel queue scheduling?
Processes are placed in separate queues by type (such as foreground and background), each with its own algorithm
All processes share one queue
Processes are scheduled by their file size
Each process has its own CPU
Sign up free to see the answer and a step-by-step explanation.
With Round Robin and a 2 ms quantum, P1 needs 3 ms and P2 needs 2 ms; both arrive at time 0 with P1 first in the queue. When does P1 finish?
4 ms
2 ms
5 ms
3 ms
Sign up free to see the answer and a step-by-step explanation.
Processes P1, P2 and P3 arrive at time 0 in that order with burst times 24, 3 and 3 ms. What is the average waiting time under FCFS (in ms)?
Enter a number as the answer.
Sign up free to see the answer and a step-by-step explanation.
Processes arriving at time 0 have burst times 24, 3 and 3 ms, but run in the order P2, P3, P1 under FCFS. What is the average waiting time (in ms)?
Enter a number as the answer.
Sign up free to see the answer and a step-by-step explanation.
Four processes arrive at time 0 with burst times 6, 8, 7 and 3 ms. What is the average waiting time under non-preemptive SJF (in ms)?
Enter a number as the answer.
Sign up free to see the answer and a step-by-step explanation.