public KProcessScheduler(Logger Log) { this.Log = Log; AllThreads = new ConcurrentDictionary <KThread, SchedulerThread>(); WaitingToRun = new ThreadQueue(); CoreThreads = new KThread[4]; CoreReschedule = new bool[4]; SchedLock = new object(); }
public KProcessScheduler() { AllThreads = new ConcurrentDictionary <KThread, SchedulerThread>(); WaitingToRun = new ThreadQueue[4]; for (int Index = 0; Index < 4; Index++) { WaitingToRun[Index] = new ThreadQueue(); } ActiveProcessors = new HashSet <int>(); SchedLock = new object(); }