Doubtclip
TutorialsSimulationNEWFormulas
Dashboard
Refer+1
+1
Doubtclip

Your personal AI teacher for Physics, Chemistry & Maths — step-by-step solutions, follow-up doubts and whiteboard videos for JEE, NEET, CBSE, AP, IB & GCSE.

hello@doubtclip.com
QQuora SpaceQQuoraIInstagram
Featured on Traffiklist

Company

  • PricingVideos
  • Blog
  • Features
  • Refer & Earn+1
  • Feedback
  • Contact
  • For coaching

Practice

  • Practice hub
  • Question bank
  • JEE Main
  • NEET
  • Olympiad
  • Formula sheet
  • Chapter guides
  • Interactive Lab
  • My progress

Learn & tools

  • Mistake Doctor
  • Mistake Diary
  • Learn a topic
  • Topics explained
  • Homework help
  • AI Teacher
  • Solved questions
  • Free calculators
  • Learn by class

Exams & papers

  • JEE Main & Adv
  • NEET UG
  • CBSE 11–12
  • BITSAT
  • CUET UG
  • AP Physics & Calc
  • IB Diploma
  • GCSE & A-Levels
  • Papers

    JEE Main papersJEE Adv papersNEET papersCBSE papers

© 2026 Doubtclip Technologies Inc. All rights reserved.

PrivacyTermsPricingSearchBlog
Solutions/Computer Science

Computer Science · Operating Systems · Video solution

25. Consider the following snapshot of a system Calculate AWT&ATAT using SRTF Pre-emptive…

Question

25. Consider the following snapshot of a system Calculate AWT&ATAT using SRTF Pre-emptive Scheduling algorithm.

Answer

AWT =6.5ms,ATAT =12.75ms\text{AWT}\ = 6.5 ms, \text{ATAT}\ = 12.75 msAWT =6.5ms,ATAT =12.75ms

Concept: SRTF Pre-emptive Scheduling

Step-by-step solution

  1. 1

    Gantt Chart (0-1)

    Time 0: P1 arrives • P1 starts execution • Runs for 1 unit
  2. 2

    Gantt Chart (1-2)

    Time 1: P2 arrives • P1 remaining: 7 • P2 burst: 4
  3. 3

    Gantt Chart (2-3)

    Time 2: P3 arrives • P2 remaining: 3 • P3 burst: 9
  4. 4

    Gantt Chart (3-7)

    Time 3: P4 arrives • P2 remaining: 2 • P4 burst: 5
  5. 5

    Gantt Chart (7-30)

    P4 (5) runs, completes at 12 • P1 (7) runs, completes at 19 • P3 (9) runs, completes at 28
  6. 6

    Calculate Times

    Completion Time (CT) • Turnaround Time (TAT) • Waiting Time (WT)
    TAT=CT−AT,WT=TAT−BT\text{TAT} = \text{CT} - \text{AT}, \text{WT} = \text{TAT} - \text{BT}TAT=CT−AT,WT=TAT−BT
  7. 7

    Average Times

    Sum all WT, TAT • Divide by N=4
    AWT=264=6.5,ATAT=514=12.75\text{AWT} = \frac{26}{4} = 6.5, \text{ATAT} = \frac{51}{4} = 12.75AWT=426​=6.5,ATAT=451​=12.75
  8. 8

    Yaad rakho / Key takeaway

    SRTF minimizes average waiting time by pre-empting processes.

Remember

SRTF minimizes average waiting time by pre-empting processes.

Common mistake

Forgetting to pre-empt when a new process arrives with shorter burst time.

Part of the chapter

  • Operating Systems › CPU Scheduling Algorithms →

Full chapter notes, teacher class and more solved questions are there.

Got a doubt like this?

Scan your question and Doubtclip makes a whiteboard video solution for it.

Scan a doubtView plans