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