Question: AIM: Write a C program to simulate First Come First Serve CPU scheduling policy with and without Arrival Time. Description: In this policy processes are

AIM: Write a C program to simulate First Come First Serve CPU scheduling policy with and
without Arrival Time.
Description: In this policy processes are structured in a ready state on the basis of First In First
Out policy. The process which is arrived first will be dispatched first for execution. Process once
dispatched cannot be interrupted.
Arrival Time: Time of arrival into the ready state queue. [Read]
Burst Time:Time spent in the running state. [Read]
Wait Time: Time spent in the ready queue. [Start time - arrival time]
Start Time: Time at which Process started its execution
[Equals to arrival (for initial process) or finish time of previous process]
Finish Time: Time at which Process finished its execution [start time + burst time]
Turnaround Time: Time period between its Arrival and Finish. [Finish time - arrival time]
Algorithm:
Start
Read process name, anrival time and burst time
Calculate wait time and turmaround time for each process
Calculate average wait time and turnaround time
Display tabular from of all processes with attributes as follows
AIM: Write a C program to simulate First Come

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!