public static PCB CreateIdleProcess() { Console.WriteLine("Tworzenie procesu bezczynnosci systemu..."); PCB Idle = new PCB("ProcesBezczynnosci", 7, "idle.txt", SourceOfCode.WindowsDisc); Idle._PID = 0; Idle.StartPriority = 8; Idle.CurrentPriority = 8; Idle.RunNewProcess(); Idle.RunReadyProcess(); return(Idle); }
public static void RunNewProcess(string Name) { if (Name == "-all") { PCB.RunAllNewProcesses(); } else { PCB pcb = PCB.GetPCB(Name); if (pcb != null) { pcb.RunNewProcess(); } } }