Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static void RunNewProcess(string Name)
 {
     if (Name == "-all")
     {
         PCB.RunAllNewProcesses();
     }
     else
     {
         PCB pcb = PCB.GetPCB(Name);
         if (pcb != null)
         {
             pcb.RunNewProcess();
         }
     }
 }