Author: Tony Werten
Date: 07:50:00 06/02/04
Go up one level in this thread
On June 02, 2004 at 08:40:55, Uri Blass wrote:
>I plan to buy a cheap computer with 2 processors dual PIII1000 Mhz for testing.
>I will probably also buy more expensive computer for WCCC with one processor
>when I may use the cheap computer for testing with ponder on.
>
>
>I still did not buy it and before buying it I have a question.
>
>The question is if I can tell the program which processor to use or tell the
>program to choose automatically one of them when I have no control about it.
I suggest downloading the Microsoft SDK help files:
The SetProcessAffinityMask function sets a processor affinity mask for the
threads of a specified process.
A process affinity mask is a bit vector in which each bit represents the
processor on which the threads of the process are allowed to run.
The value of the process affinity mask must be a proper subset of the mask
values obtained by the GetProcessAffinityMask function.
BOOL SetProcessAffinityMask(
HANDLE hProcess, // handle to process
DWORD dwProcessAffinityMask // process affinity mask
);
Parameters
hProcess
A handle to the process whose affinity mask the function sets. This handle must
have the PROCESS_SET_INFORMATION access right. For more information, see Process
Objects.
dwProcessAffinityMask
Specifies an affinity mask for the threads of the process.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
Process affinity is inherited by any process that you start with the
CreateProcess function.
See Also
CreateProcess, GetProcessAffinityMask
>
>Another question is if I can be sure that the processors are of equal speed(if
>they are not of equal speed then the question which processor the program is
>using may be important.
>
>Can I be sure that one 1 Ghz is not 1.01ghz when the second 1ghz is 0.99 ghz?
>
>Uri
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.