arrow
arrow
arrow
Consider the following processes with their respective burst times: Using Non-Preemptive Shortest Job First (SJF) scheduling, calcu
Question



Consider the following processes with their respective burst times:

Using Non-Preemptive Shortest Job First (SJF) scheduling, calculate the average waiting time.

A.

7.0 ms

B.

5.5 ms

C.

6.25 ms

D.

5.0 ms

E.

6.0 ms

Correct option is A

To calculate the average waiting time for Non-Preemptive SJF scheduling:
1. Step 1: Sort Processes by Burst Time Arrange the processes in ascending order of their burst times:

2. Step 2: Calculate Waiting Time Time spent waiting before a process starts execution.
WT for process=Completion Time of Previous Process−Arrival Time of Current Process
· P4: 0 ms (No waiting, it is executed first)
· P1: 3 ms (Waiting time of P4)
· P3: 3 + 6 = 9 ms (Waiting time of P4 + Burst time of P1)
· P2: 3 + 6 + 7 = 16 ms (Waiting time of P4 + Burst time of P1 + Burst time of P3)


3. Step 3: Calculate Average Waiting Time Average waiting time = Total waiting time / Number of processes
Average Waiting Time=0+3+9+16/4
Average Waiting Time =28/4
Average Waiting Time =7.0 ms

Free Tests

Free
Must Attempt
Video Solutions

RBI Assistant Pre 2026 Full Mock Test -01

languageIcon English
  • pdpQsnIcon100 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Asst Prelims 2026 : Reasoning Section Test 01

languageIcon English
  • pdpQsnIcon35 Questions
  • pdpsheetsIcon35 Marks
  • timerIcon20 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Office Attendant 2026 Full Mock Test - 01

languageIcon English
  • pdpQsnIcon120 Questions
  • pdpsheetsIcon120 Marks
  • timerIcon90 Mins
languageIcon English
test-prime-package

Access ‘IBPS SO IT Officer’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
353k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow