Пример #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);
 }