Schedules the jobs that run on the system.
Inheritance:
Public Methods
-
Scheduler()
- Default constructor
-
virtual ~Scheduler()
- Destructor
-
virtual void setComputers(map<ID, Computer>* newComputers)
- Gives the scheduler relevant information about computers in the system
-
void setNetwork(Network* newNetwork)
- Gives the scheuduler relevant information about the network
-
void setQueuedEvents(QueuedEvents* newEvents)
- Gives the scheduler access to events queued for execution in the system
-
void setProcessList(map <ID, Process*>* newList)
- Gives the scheduler access to process information
-
void setPacking(const Packing newPacking)
- Sets the scheduler's packing scheme
-
void setPriority(const Priority newPriority)
- Sets the scheduler's waiting queue priority scheme
-
void setSchedulingOverhead(const TIME overhead)
- Sets the amount of simulation time the scheduler spends thinking about what to do
-
virtual void setMemoryAware(const bool value)
- Sets whether the scheduler will be aware of memory constraints or not.
-
virtual Policy getPolicy() const
- Get the scheduling policy
-
bool getMemoryAware() const
-
-
virtual bool submitProcess(const Token& token)
- Takes appropriate actions when the given job is submitted into the system
-
virtual bool startProcess(const Token& token)
- Takes appropriate actions when the given job starts on the system
-
virtual bool terminateProcess(const Token& token)
- Takes appropriate actions when the given job has terminated.
-
virtual bool timeQuantumExpired()
- Takes appropriate actions when the time quantum alloted to the jobs currently in the system has expired.
-
virtual bool schedule(bool start = true)
- Decides what processes should be run, and when
-
virtual bool isCurrentlyRunning(Process* process)
-
-
static Policy stringToPolicy(string str)
-
static Priority stringToPriority(string str)
-
static Packing stringToPacking(string str)
-
static string policyToString(Policy pol)
-
static string priorityToString(Priority pri)
-
static string packingToString(Packing pack)
-
virtual string toString() const
-
Documentation
Schedules the jobs that run on the system.
Scheduler()
-
virtual ~Scheduler()
-
virtual void setComputers(map<ID, Computer>* newComputers)
-
void setNetwork(Network* newNetwork)
-
void setQueuedEvents(QueuedEvents* newEvents)
-
void setProcessList(map <ID, Process*>* newList)
-
void setPacking(const Packing newPacking)
-
void setPriority(const Priority newPriority)
-
void setSchedulingOverhead(const TIME overhead)
-
virtual void setMemoryAware(const bool value)
-
If the scheduler is aware of memory constraints, it may choose to queue
jobs that would otherwise run (that is, they'd have enough processors to run)
virtual Policy getPolicy() const
-
Examples include space-sharing, backfilling, and gang scheduling
bool getMemoryAware() const
-
- Returns:
- true if the scheduler is memory aware (cares about whether paging
will be invoked or not). False otherwise.
virtual bool submitProcess(const Token& token)
-
This function is one of the standared scheduling functions. Each scheduler
will execute different actions when this event occurs
virtual bool startProcess(const Token& token)
-
This function is one of the standared scheduling functions. Each scheduler
will execute different actions when this event occurs
virtual bool terminateProcess(const Token& token)
-
This function is one of the standared scheduling functions. Each scheduler
will execute different actions when this event occurs
virtual bool timeQuantumExpired()
-
This function is one of the standared scheduling functions. Each scheduler
will execute different actions when this event occurs
virtual bool schedule(bool start = true)
-
This function is one of the standared scheduling functions. Each scheduler
will execute different actions when this event occurs
virtual bool isCurrentlyRunning(Process* process)
-
static Policy stringToPolicy(string str)
static Priority stringToPriority(string str)
static Packing stringToPacking(string str)
static string policyToString(Policy pol)
static string priorityToString(Priority pri)
static string packingToString(Packing pack)
virtual string toString() const
-
- Returns:
- a string representation of the scheduler object
- Direct child classes:
- GangSched
- Author:
- John Oleszkiewicz
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.