Scheduler
fixedPriorityDiscipline.h
Go to the documentation of this file.
1 
10 #ifndef FIXEDPRIORITYDISCIPLINE_H
11 #define FIXEDPRIORITYDISCIPLINE_H
12 
13 #include "priorityDiscipline.h"
14 
15 namespace Scheduler
16 {
17 
19 {
20 public:
21  static constexpr const char *configKey = "fixedPriorityDiscipline";
22 public:
23  FixedPriorityDiscipline(std::shared_ptr<SchedulerConfiguration> c) : PriorityDiscipline(c){};
25  std::string getName();
26  void updatePriorities(Queue *readyQueue, std::shared_ptr<Process> running) override;
27 };
28 
29 }
30 
31 #endif
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
static constexpr const char * configKey
void updatePriorities(Queue *readyQueue, std::shared_ptr< Process > running) override
sets the correct priorities to the tasks, especially if dynamic priorities are used.
FixedPriorityDiscipline(std::shared_ptr< SchedulerConfiguration > c)