public Queues() { localQueues = new WorkStealingQueue <Task> [AssignmentMain.TotalNumberOfProcessors()]; for (int i = 0; i < AssignmentMain.TotalNumberOfProcessors(); i++) { localQueues[i] = new WorkStealingQueue <Task>(); } }
public Processor(int id, Queues queue) { id_ = id; iteration = 0; localQueue = queue.localQueues[id_]; allProcQueues = queue; totalProcs = AssignmentMain.TotalNumberOfProcessors(); rand = new Random(); }