public void PinThread(KThread thread) { if (!thread.TerminationRequested) { PinnedThreads[thread.CurrentCore] = thread; thread.Pin(); KernelContext.ThreadReselectionRequested = true; } }