public Processor(double procTime1, double procTime2) { ProcQueue = new QueueEx(); Proc1 = new MicroProcessor(procTime1); Proc2 = new MicroProcessor(procTime2); _rand = new BernulliRandom(0.6); }
public Memory(int blocksCount, double lowerBoundReProc, double upperBoundReProc) { Blocks = blocksCount; FreeBlocks = Blocks; MaxBusyBlocks = 0; Time = 0; MemQueue = new QueueEx(); _rand = new UniformRandom(lowerBoundReProc, upperBoundReProc); }