![]() If (process.getProcessedBurstTime() % RoundRobin.timeQuantum = 0) proccess, if so continue to the next process in queue. check if the CPU has Finished processing the previous Pairs.add(new Pair(cpu.getTime(), cpu.getProcess().getName())) Pairs.add(new Pair(cpu.getTime(), "IDLE")) if the waiting queue is empty then that means that the if the CPU is not busy then get one of the process in the LinkedList arrivedProcesses = RoundRobin.getArrivedProcessed(cpu.getTime()) check if there are processes that has arrived and add them to the RoundRobin.ps.println("Process Name | Arrival Time | Burst Time |") RoundRobin.ps.printf("%27s%n", "PROCESSES") RoundRobin.ps.println("TIME QUANTUM: " + RoundRobin.timeQuantum) RoundRobin.ps.println("ROUND ROBIN SIMULATION RESULT") ![]() Before starting the simulation, print first the generated processes * Display Process table and Processes Execution Sequence ![]() This is a round Robin CPU Scheduling program. I have been trying to create a gantt chart with the output of my program but i can't seem to figure out how to do it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |