Interface IProcessQueue
- All Known Implementing Classes:
PriorityArray
,ProcessQueueImpl
public interface IProcessQueue
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(IActiveProcess process, boolean in_front) void
addFirst
(IActiveProcess process) void
addLast
(IActiveProcess process) boolean
contains
(IActiveProcess process) getBestRunnableQueue
(IResourceInstance instance) getNextRunnableProcess
(IResourceInstance instance) getStarvingProcesses
(double starvationLimit) double
getWaitingTime
(IActiveProcess process) void
identifyMovableProcesses
(IResourceInstance target_instance, boolean prio_increasing, boolean queue_ascending, int processes_needed, List<IActiveProcess> process_list) boolean
isEmpty()
boolean
processStarving
(double threshold) boolean
remove
(IActiveProcess process) void
setWaitingTime
(IActiveProcess process, double waiting) int
size()
-
Method Details
-
size
int size() -
isEmpty
boolean isEmpty() -
contains
-
remove
-
addLast
-
addFirst
-
add
-
ascending
Iterable<IActiveProcess> ascending() -
descending
Iterable<IActiveProcess> descending() -
getBestRunnableQueue
-
getNextRunnableProcess
-
getNextRunnableProcess
IActiveProcess getNextRunnableProcess() -
identifyMovableProcesses
void identifyMovableProcesses(IResourceInstance target_instance, boolean prio_increasing, boolean queue_ascending, int processes_needed, List<IActiveProcess> process_list) -
createNewInstance
IProcessQueue createNewInstance() -
processStarving
boolean processStarving(double threshold) -
setWaitingTime
-
getWaitingTime
-
getStarvingProcesses
-