Thread.GetCurrentProcessorId Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an ID used to indicate on which processor the current thread is executing.
public:
static int GetCurrentProcessorId();
public static int GetCurrentProcessorId ();
static member GetCurrentProcessorId : unit -> int
Public Shared Function GetCurrentProcessorId () As Integer
Returns
An integer representing the cached processor ID.
Remarks
This value is cached and periodically refreshed. It may be stale by the time it's used: consuming code must not rely on its accuracy for correctness.
The value is not guaranteed to be a zero-based processor number.
Applies to
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.