public LongTermScheduler(Driver k)
 {
     kernel = k;
     disk = k.Disk;
     RAM = k.RAM;
     NPQ = k.NewProcessQueue;
     WQ = k.WaitingQueue;
     RQ = k.ReadyQueue;
 }
Beispiel #2
0
 public CPU(Driver k, int id)
 {
     kernel = k;
     disk = k.Disk;
     RAM = k.RAM;
     RQ = k.ReadyQueue;
     cpuPCB = new PCB();
     cache = new uint[1];
     this.id = id;
     thread = new Thread(new ThreadStart(this.Run));
     _suspendEvent = new ManualResetEventSlim(false);
     thread.Start();
 }
Beispiel #3
0
 public Dispatcher(Driver k)
 {
     kernal = k;
     RQ = k.ReadyQueue;
 }