Thread.GetCurrentProcessorId 메서드

정의

현재 스레드가 실행 중인 프로세서를 나타내는 데 사용되는 ID를 가져옵니다.

public:
 static int GetCurrentProcessorId();
public static int GetCurrentProcessorId();
static member GetCurrentProcessorId : unit -> int
Public Shared Function GetCurrentProcessorId () As Integer

반품

캐시된 프로세서 ID를 나타내는 정수입니다.

설명

이 값은 캐시되고 주기적으로 새로 고쳐집니다. 사용되는 시간까지 부실할 수 있습니다. 코드를 사용하는 것은 정확성에 대한 정확도에 의존해서는 안 됩니다.

값이 0부터 시작하는 프로세서 번호로 보장되지는 않습니다.

적용 대상