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:

How to implement a java class for First Come First Serve(FCFS) process

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

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 Databases Questions!