Scheduler
fixedPriorityDiscipline.cpp
Go to the documentation of this file.
1 
11 
12 using namespace Scheduler;
13 
15 {
16  return "Fixed priority";
17 }
18 
19 void FixedPriorityDiscipline::updatePriorities(Queue *, std::shared_ptr<Process>)
20 {
21  /*note that this redefinition is not necessary, as the default PriorityDiscipline already
22  implements a fixed priority. This redefinition is an optimization.*/
23  return;
24 }
25 
26 
This class implements the ready queue and the wait queue. Those queues contain processes ready to run...
Definition: queue.h:28
std::string getName()
returns the name of that discipline
void updatePriorities(Queue *readyQueue, std::shared_ptr< Process > running) override
sets the correct priorities to the tasks, especially if dynamic priorities are used.