멀티 스레드 프로그램을 가지고 있다면, 각 스레드가 실행되는 코어 을 어떻게 알 수 있습니까?스레드가 실행되는 코어를 어떻게 알 수 있습니까? (Win XP에서)
C#에서 XP를이기는 다른 해결책이 있습니까?
나는이 시도 :
[DllImport("ntdll"), SuppressUnmanagedCodeSecurity]
public static extern int NtGetCurrentProcessorNumber();
을 나는이 예외를 얻을 :
System.EntryPointNotFoundException이었다 처리되지 않은 메시지 = "DLL '의 ntdll에서'NtGetCurrentProcessorNumber '라는 진입 점을 찾을 수 없습니다 '. " = "XP_Multicore_try_0" 유형 이름 소스 = "" 스택 트레이스 : XP_Multicore_try_0.Program.NtGetCurrentProcessorNumber() 에서 XP_Multicore_try_0.Program.loop()에서 C에서 : \ 문서 및 프로그램 \ 설정 \ evyatarv \ 바탕 화면 \ XP_Multicore_try_0 \ XP_Multicore_try_0. CS : 라인 System.Threading.ThreadHelper.ThreadStart()에서 System.Threading.ThreadHelper.ThreadStart_Context (개체 상태) System.Threading.ExecutionContext.Run에서 (의 ExecutionContext의 ExecutionContext, ContextCallback 콜백 상태 개체)
감사합니다. Evyatar
나는이 기능을 알고 있지만 테스트를 위해 사용하고 싶지 않다. – Evyatar