Wie finde ich heraus auf welchem Prozessor der Thread läuft/wieviele Prozessoren es gibt?
-
Hallo,
gibt es für Boost-Threads eine Funktion welche mir sagt auf welchem Prozessor der jeweilige Thread läuft?(eine Funktion mit welcher ich einen Thread an einen Prozessor binden kanne habe ich bereits)
Und gibt es eine Funktion welche mir zurückliefert wieviel Prozessoren es auf dem System gibt?
-
mal ne msdn suche (ca. 20sec), wusste allerdings das es das dort gibt:
Retrieves the processor group and number of the logical processor in which the calling thread is running.
http://msdn.microsoft.com/en-us/library/dd405487(VS.85).aspxhttp://msdn.microsoft.com/en-us/library/ms683181(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms686253(VS.85).aspx
-
danke, schonmal.
Gibt es das auch für Linux?
-
Boost ist auch linux-tauglich.
-
It0101 schrieb:
Boost ist auch linux-tauglich.
Aber die aufgezählten WinAPI-Funktionen gehören wohl kaum zu Boost, gelle?