Exemplo n.º 1
0
 public void DispatchProcess(CPU cpu)
 {
     if (RQ.AccessQueue.Count != 0)
     {
         cpu.CurrentProcess = RQ.AccessQueue.Dequeue();
         cpu.CPU_PCB = cpu.CurrentProcess.PCB;
     }
 }
Exemplo n.º 2
0
 public void DispatchProcess(CPU cpu)
 {
     lock (Lock)
     {
         if (RQ.AccessQueue.Count != 0)
         {
             cpu.CurrentProcess = RQ.AccessQueue.Dequeue();
             if (cpu.CurrentProcess != null)
                 cpu.CPU_PCB = cpu.CurrentProcess.PCB;
         }
     }
 }
Exemplo n.º 3
0
 public void SwapOut(CPU cpu)
 {
 }