Question: Problem: Wrile a program to simulate the work of processes scheduler by using RR algorithm where the structure of the input files as follows: First

Problem:
Wrile a program to simulate the work of processes scheduler by using RR algorithm where the structure of the input files as follows:
First line in the inputtile represents a process quantum size.
Other lines represent process type, arrival time, order for primarv process (if exist). and execute time.
Example 1:
Input File
\table[[4,,,],[N,0,2.4,],[P,0,7,0],[N,0,3,]]
P,0,2
N,0,3
2
Output SampleExample 2:Input File{:[3,,],[N,0,3]:}{:[N,0,6],[N,0,6,x]:}{:[1,0,6],[P,0,3,-1]:}N 01
Output Sample
Additional requirements:
The program should have the following classes:
Normal Process Class: This class represents the process where it has process type, ID, execute time and a completion time which can be set whenever the process finished (hint: you can use the clock). Arrival is assumed to be zero all times. Process ID shouldbe unique and the class create it for each process (use static variable). Provide the required methods accordingly
Primary process class: Has the same features exacily as the normal process bul it has order variable that represent the number of consecutive slots in the execution schedule. Provide the required methods accordingly.
RRScheduler Class: This class represents the work of the scheduler. It has mainly
Two lists of processes, one of the list will be as a record of the processes while the olther is to work on to execule the process in CPU.
Quantum size
Clock, which is a simple counter to represent timing to run the list of processes.
The method list should be as the following
Pop method: to remove the process from the top (index 0) of the list.
RunRR method: to represent the job of RR scheduler. You may need to add more methods/lists to serve/help this method.
printPreformance 0 method: to display evaluation/performance of the sehcduler like turnaround and waiting time. Check the sample of output
RRTester Class: This class will read dat of the processes from input lile and add them to a lisL. Then create RRSchedule ubject io execule the list of the processes.
Grading table:
Items
| Mark
Comments
Java***
Problem: Wrile a program to simulate the work of

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!