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