Question: How to implement a java class for First Come First Serve(FCFS) process scheduling out put then output into gantt chart? I have initizied variables: private
How to implement a java class for First Come First Serve(FCFS) process scheduling out put then output into gantt chart? I have initizied variables:
private int burstTime;
private int arrivalTime;
private int remainingTime;
//I have them in a process class here a example of print statement for reference to how i can access each variable:
System.out.println("Process: " + p.getName() + " ArrTime: " + p.getArrivalTime() + " BurstTime: " + p.getBurstTime());
The final output is suppose to look like this:

9 1 B 5 4 0 2 D 4 1 E 55 FCFS C xI//D E 0--- 2-4--5--10--14--15 ID AT BT WT TT D 4 1 0 1 9 1 B 5 4 0 2 D 4 1 E 55 FCFS C xI//D E 0--- 2-4--5--10--14--15 ID AT BT WT TT D 4 1 0 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
