Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3029

Thread/Core affinity

$
0
0
I use the Windows CPU Meter on my dual-core machine. It has two dials which I (wrongly) thought were showing me the usage for core #1 and core #2. But I've just realised this morning that the 2nd dial actually shows memory usage. Does anyone know of a gadget which can show me the load distribution between my cores?

I'm just interested to know how Windows allocates threads to cores for a multicore processor. Does it use some kind of 'round robin' strategy? Or does it wait until the first core's getting quite stressed before then allocating the second core and so on?

Or to put it another way... is there ever anything to be gained by using SetThreadAffinityMask() or SetThreadIdealProcessor() ??

Viewing all articles
Browse latest Browse all 3029

Latest Images

Trending Articles



Latest Images