Question

In: Computer Science

What is the arrival time, completion time, burst time, turnaround time, and the waiting time of...

What is the arrival time, completion time, burst time, turnaround time, and the waiting time of First Come First Serve (FCFS)?

Solutions

Expert Solution

Answer:----------------

First Come First Serve (FCFS):---------------

Arrival time:----- Time at which the process arrives in the ready queue.

Completion time:---- Time at which process completes its execution.

Burst time:---- Time required by a process for CPU execution.

Turnaround time:---- The interval from the time of submission of a process to the time of completion is the turnaround time.Turnaround time is the sum of the periods spent waiting to get into memory, waiting in the ready queue, executing on the CPU, and doing I/O.
Turnaround Time = Completion Time - Arrival Time

Waiting time :---- The amount of time that a process spends waiting in the ready queue. Waiting time is the sum of the periods spent waiting in the ready queue.
Waiting time = Turnaround time – Burst time
Waiting time = Completion time – Arrival time – Burst Time

Example of FCFS :------------
Consider below table of three processes under FCFS .

Process Arrival Time CPU Burst Time
P1 0 4
P2 0 4
P3 0 7

Below is the gantt chart of the problem :

P1 P2 P3

0------------------------4------------------------8----------------------15

Completion Time of P1 :-- 4
Completion Time of P2 :-- 8
Completion Time of P3 :-- 15

Turnaround Time of P1 :-- 4 - 0 = 4
Turnaround Time of P2 :-- 8 - 0 = 8
Turnaround Time of P3 :-- 15 - 0 = 15

Waiting Time of P1 :-- 4 - 4 = 0
Waiting Time of P2 :-- 8 - 4 = 4
Waiting Time of P3 :-- 15 - 7 = 8


Related Solutions

What is the arrival time, completion time, burst time, turnaround time, and the waiting time for...
What is the arrival time, completion time, burst time, turnaround time, and the waiting time for Shortest Remaining Time?
What is the arrival time, completion time, burst time, turnaround time, and the waiting time for...
What is the arrival time, completion time, burst time, turnaround time, and the waiting time for Priority Scheduling?
For Priority Scheduling, What is the arrival time, completion time, burst time, turnaround time, and the...
For Priority Scheduling, What is the arrival time, completion time, burst time, turnaround time, and the waiting time? discuss these terms further as they pertain to the efficiency of the algorithm as well as properties such as starvation. Pros and Cons of Priority Scheduling
For Shortest Remaining Time, What is the arrival time, completion time, burst time, turnaround time, and...
For Shortest Remaining Time, What is the arrival time, completion time, burst time, turnaround time, and the waiting time? discuss these terms further as they pertain to the efficiency of the algorithm as well as properties such as starvation. Pros and Cons of Shortest Remaining Time
For Round Robin (RR) Scheduling, What is the arrival time, completion time, burst time, turnaround time,...
For Round Robin (RR) Scheduling, What is the arrival time, completion time, burst time, turnaround time, and the waiting time? discuss these terms further as they pertain to the efficiency of the algorithm as well as properties such as starvation. Pros and Cons of RR
For Multiple-Level Queues Scheduling, What is the arrival time, completion time, burst time, turnaround time, and...
For Multiple-Level Queues Scheduling, What is the arrival time, completion time, burst time, turnaround time, and the waiting time? discuss these terms further as they pertain to the efficiency of the algorithm as well as properties such as starvation. Pros and Cons of Multiple-Level Queues Scheduling
For First Come First Served (FCFS), -What is the arrival time, completion time, burst time, turnaround...
For First Come First Served (FCFS), -What is the arrival time, completion time, burst time, turnaround time, and the waiting time? -discuss these terms further as they pertain to the efficiency of the algorithm as well as properties such as starvation. -Pros and Cons of FCFS
For Shortest-Job-Next (SJN) Scheduling, -What is the arrival time, completion time, burst time, turnaround time, and...
For Shortest-Job-Next (SJN) Scheduling, -What is the arrival time, completion time, burst time, turnaround time, and the waiting time? -discuss these terms further as they pertain to the efficiency of the algorithm as well as properties such as starvation. -Pros and Cons of SJN
What is the waiting time and Turnaround time of each process for each of the scheduling...
What is the waiting time and Turnaround time of each process for each of the scheduling algorithms? [12 Marks] Job Arrival Time Burst(msec) Priority A 0 6 3 (Silver) B 1 2 1 (Diamond) C 3 5 3 (Silver) D 5 3 4 (Bronze) E 7 2 2 (Gold) (a) First-Come-First-Served (FCFS) scheduling [2 Marks] (b) Preemptive PRIORITY scheduling [2 Marks] (c) Highest Response Ratio Next (HRRN) scheduling [2 Marks] (d) Round Robin (RR) (quantum = 4) scheduling [2 Marks]...
Urgent!! What is the waiting time and Turnaround time of each process for each of the...
Urgent!! What is the waiting time and Turnaround time of each process for each of the scheduling algorithms? [12 Marks] Job Arrival Time Burst(msec) Priority A 0 6 3 (Silver) B 1 2 1 (Diamond) C 3 5 3 (Silver) D 5 3 4 (Bronze) E 7 2 2 (Gold) (a) First-Come-First-Served (FCFS) scheduling [2 Marks] (b) Preemptive PRIORITY scheduling [2 Marks] (c) Highest Response Ratio Next (HRRN) scheduling [2 Marks] (d) Round Robin (RR) (quantum = 4) scheduling [2...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT