DIZNR INTERNATIONAL

Day 02Part 03- Various types of times in Process Scheduling algorithm, Arrival, Burst TAT.

Day 02Part 03- Various types of times in Process Scheduling algorithm, Arrival, Burst TAT.

https://www.gyanodhan.com/video/7B7.%20GATE%20CSEIT/Operating%20System/411.%20Day%2002Part%2003-%20Various%20types%20of%20times%20in%20Process%20Scheduling%20algorithm%20%20%20Arrival%20%20%20Burst%20%20%20TAT.mp4

 Day 02 | Part 03 – Process Scheduling Algorithm: Various Types of Times

Process scheduling in an operating system involves different types of times that determine the efficiency and execution sequence of processes. Let’s explore them one by one:

 Arrival Time (AT)

Definition: The time when a process enters the ready queue.
Example: If Process P1 arrives at time 0 ms and P2 at 2 ms, then:

 Burst Time (BT)

Definition: The total time required by a process to execute on the CPU.
 Also called Execution Time or CPU Time.
Example:

 Turnaround Time (TAT)

Definition: The total time taken by a process from arrival to completion.
Formula:

TAT=CompletionTime(CT)−ArrivalTime(AT)TAT = Completion Time (CT) – Arrival Time (AT)

Example: If a process arrives at 0 ms and completes at 10 ms, then:

 Waiting Time (WT)

Definition: The total time a process spends waiting in the ready queue before execution.
Formula:

WT=TurnaroundTime(TAT)−BurstTime(BT)WT = Turnaround Time (TAT) – Burst Time (BT)

Example:

 Completion Time (CT)

Definition: The time at which a process finishes execution.
Example: If process P1 finishes execution at 12 ms, then

 Response Time (RT)

Definition: The time from arrival to the first execution of a process.
Formula:

RT=FirstExecutionTime−ArrivalTime(AT)RT = First Execution Time – Arrival Time (AT)

Example:

 Summary Table:

Time Type Definition Formula
Arrival Time (AT) When process arrives in the queue Given in question
Burst Time (BT) Total execution time Given in question
Turnaround Time (TAT) Time from arrival to completion CT - AT
Waiting Time (WT) Time spent waiting in queue TAT - BT
Completion Time (CT) When process finishes execution Given or calculated
Response Time (RT) Time from arrival to first execution First Execution - AT

 Example Problem:

Given Processes:

Process AT BT
P1 0 5
P2 1 3
P3 2 8

If scheduled using FCFS (First Come First Serve), find TAT, WT, and RT.

Would you like me to solve this example step by step?

Day 02Part 03- Various types of times in Process Scheduling algorithm, Arrival, Burst TAT.

Operating System : Scheduling Algorithm – Jaunpur

PROCESSES AND CPU Scheduling

In Process Scheduling (a key topic in Operating Systems and commonly tested in GATE), understanding the various types of times is crucial. Below is a concise explanation of each important time type involved:


1. Arrival Time (AT)


2. Burst Time (BT) / Execution Time


3. Completion Time (CT)


4. Turnaround Time (TAT)


5. Waiting Time (WT)


6. Response Time (RT)


Example Table for Clarification

Process AT BT CT TAT = CT – AT WT = TAT – BT
P1 0 5 5 5 0
P2 1 3 8 7 4
P3 2 2 10 8 6

Would you like a solved example with Gantt chart for a specific scheduling algorithm (like FCFS, SJF, Round Robin)?

Day 02Part 03- Various types of times in Process Scheduling algorithm, Arrival, Burst TAT.

PROCESS SCHEDULING ALGORITHMS: A REVIEW

Chapter 5: Process Scheduling

Chapter 6: CPU Scheduling