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