예제 #1
0
파일: Kernel.cs 프로젝트: Myvar/PashOS
 protected override void Run()
 {
     //Step through every thread...
     for (int i = 0; i < Pool.Count; i++)
     {
         currentThread = Pool[i];
         Pool[i].Step();
     }
 }
예제 #2
0
파일: Process.cs 프로젝트: Myvar/PashOS
        public static Process Purge(KThread thread)
        {
            if (thread.Parent.MainThread != thread)
            {
                Process process = new Process();
                process.Threads.Add(thread);

                return process;
            }
            else throw new Exception("Cannot Purge a Main Thread...");
        }