Class GangScheduling

java.lang.Object
   |
   +----GangScheduling

public class GangScheduling
extends Object
implements SchedulerInterface
Example: A very simple gang scheduler


Constructor Index

 o GangScheduling(TheSimulator)

Method Index

 o EndOfTimeSlice(float, int)
EndOfTimeSlice Invoked at the end of a time slice
 o GlobalClock(float)
Invoked when a receiving a global clock signal
 o JobArrival(float, int)
Invoked when a new job arrives
 o main(String[])
 o PeIdle(float, int, int)
Invoked when a PE has become idle for some reason
 o TaskArrival(float, long)
Invoked when a new task arrives, only if the network is asynchronous
 o TaskStateChange(float, long)
Invoked when a task has changed state

Constructors

 o GangScheduling
 public GangScheduling(TheSimulator ts)

Methods

 o JobArrival
 public void JobArrival(float time,
                        int jobId)
Invoked when a new job arrives

Parameters:
time - Time when the job arrived
jobID - ID of the job that arrived
 o TaskStateChange
 public void TaskStateChange(float time,
                             long taskID)
Invoked when a task has changed state

Parameters:
time - Time when the change of state occured
task - ID of the task that changed state
 o PeIdle
 public void PeIdle(float time,
                    int peId,
                    int reason)
Invoked when a PE has become idle for some reason

Parameters:
time - Time when the PE became idle
peId - The id of the PE that became idle
reason - Why the PE became idle. Not implemented.
 o EndOfTimeSlice
 public void EndOfTimeSlice(float time,
                            int peId)
EndOfTimeSlice Invoked at the end of a time slice

 o TaskArrival
 public void TaskArrival(float time,
                         long taskID)
Invoked when a new task arrives, only if the network is asynchronous

Parameters:
time - Time when the task arrived
task - ID of the task that arrived
 o GlobalClock
 public void GlobalClock(float time)
Invoked when a receiving a global clock signal

Parameters:
time - Time when the global clock arrived
 o main
 public static void main(String args[])