public void Start() { UninterruptibleMonitor.Enter(Threads); try { RunState = ProcessRunState.Running; for (var i = 0; i < Threads.Count; i++) { KernelMessage.WriteLine("Starting {0}, ProcessID={1} on Thread {2}", Path, (uint)ProcessID, (uint)Threads[0].ThreadID); Threads[i].Start(); } } finally { UninterruptibleMonitor.Exit(Threads); } }
public void Start() { Service.Init(); UninterruptableMonitor.Enter(Threads); try { RunState = ProcessRunState.Running; for (var i = 0; i < Threads.Count; i++) { Threads[i].Start(); } } finally { UninterruptableMonitor.Exit(Threads); } }