예제 #1
0
 public void DispatchProcess(CPU cpu)
 {
     if (RQ.AccessQueue.Count != 0)
     {
         cpu.CurrentProcess = RQ.AccessQueue.Dequeue();
         cpu.CPU_PCB = cpu.CurrentProcess.PCB;
     }
 }
예제 #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;
         }
     }
 }
예제 #3
0
 public void SwapOut(CPU cpu)
 {
 }