public class FifoScheduler extends java.lang.Object implements Scheduler<SchedulingState>
Constructor and Description |
---|
FifoScheduler() |
Modifier and Type | Method and Description |
---|---|
void |
ioConcluded(ProcessControlBlock<SchedulingState> pcb)
Process with the given control block has concluded the requested input/output operation
|
void |
ioRequest(ProcessControlBlock<SchedulingState> pcb)
Process with the given control block has performed an input/output operation
|
void |
newProcess(java.lang.String fileName,
Program program)
Create a new process to run the program with given name
|
void |
processConcluded(ProcessControlBlock<SchedulingState> pcb)
Process with the given control block has concluded
|
void |
quantumExpired(ProcessControlBlock<SchedulingState> pcb)
Process with the given control block has expired its quantum
|
public void newProcess(java.lang.String fileName, Program program)
Scheduler
newProcess
in interface Scheduler<SchedulingState>
fileName
- The name of the file storing the programprogram
- The program to runpublic void ioRequest(ProcessControlBlock<SchedulingState> pcb)
Scheduler
ioRequest
in interface Scheduler<SchedulingState>
pcb
- The process control blockpublic void ioConcluded(ProcessControlBlock<SchedulingState> pcb)
Scheduler
ioConcluded
in interface Scheduler<SchedulingState>
pcb
- The process control blockpublic void quantumExpired(ProcessControlBlock<SchedulingState> pcb)
Scheduler
quantumExpired
in interface Scheduler<SchedulingState>
pcb
- The process control blockpublic void processConcluded(ProcessControlBlock<SchedulingState> pcb)
Scheduler
processConcluded
in interface Scheduler<SchedulingState>
pcb
- The process control block