23 maxFreq(
System::getInstance()->getProc()->getMaxFreq()), minFreq(
System::getInstance()->getProc()->getMinFreq())
30 double currentFreq = proc->
getFreq();
33 currentFreq = std::min(maxFreq, currentFreq + freqStep*maxFreq);
35 else if (proc->
getUsage() < downThreshold)
37 currentFreq = std::max(minFreq, currentFreq - freqStep*maxFreq);
49 return "ConservativeGovernor";
double getFreq() const
get the current frequency of the processor
This class implements the ready queue and the wait queue. Those queues contain processes ready to run...
bool freqChangeEvent(TriggeringEvent trigger)
double getUsage() const
get the current usage of the processor
void setFreq(double)
set the current frequency of the processor
void updateFreq(Processor *proc, Queue *readyQueue)