Scheduler
|
#include <taskSetGenerator.h>
Static Public Member Functions | |
static void | generate (SchedulingSimulator *simulator, unsigned int nbOfTasks, double utilization, time_t seed, bool critical=true, bool integerPeriod=false, std::shared_ptr< Utils::BoundedRandomDistribution > dist=nullptr) |
generates a random task set. The deadline will be equal to the period. The start time will be 0.1 The set is then saved in the System class, in order to be accessed by some scheduling disciplines needing it. More... | |
Definition at line 31 of file taskSetGenerator.h.
|
static |
generates a random task set. The deadline will be equal to the period. The start time will be 0.1 The set is then saved in the System class, in order to be accessed by some scheduling disciplines needing it.
nbTasks | the number of tasks |
utilization | the total cpu utilization |
seed | the seed to use for the random generator |
critical | wether there is an hyperperiod at the start of which all tasks get issued Note: for the moment, critical is always true. |
integerPeriod | if true, the period of each task is an integer. IMPORTANT: setting this to true modifies slightly the actual utilization compared to the specified value |
isRandom | if true, the amount of work is random. |
Definition at line 30 of file taskSetGenerator.cpp.