Vincent Fatica
2010-06-13 16:43:54 UTC
dwIdealProcessor [in]
The number of the preferred processor for the thread. This value is zero-based. If this parameter is MAXIMUM_PROCESSORS, the function returns the current ideal processor without changing it.
Return Value
If the function succeeds, the return value is the previous preferred processor.
for ( INT i=0; i<10; i++ )
wprintf(L"%u ", SetThreadIdealProcessor(GetCurrentThread(), MAXIMUM_PROCESSORS));
1 0 3 2 1 0 3 2 1 0 [yes, they cycle]The number of the preferred processor for the thread. This value is zero-based. If this parameter is MAXIMUM_PROCESSORS, the function returns the current ideal processor without changing it.
Return Value
If the function succeeds, the return value is the previous preferred processor.
for ( INT i=0; i<10; i++ )
wprintf(L"%u ", SetThreadIdealProcessor(GetCurrentThread(), MAXIMUM_PROCESSORS));
What's up with that?
--
- Vince
- Vince