Click to See Complete Forum and Search --> : 2 CPUs - 2 Applications?


yiannakop
February 13th, 2004, 07:48 AM
Hi everyone. I got 2 applications running on different machines and communicationg through a TCP/IP link. The reason they don't run on the same pc is that CPU is not enough. If I will setup the programs on a workstation with two processors, will I be able to run the apps using the CPU I want (ie each application runs on a different CPU). Do win2K or WinXp give me that choise?

akraus1
February 13th, 2004, 08:11 AM
SetThreadAffinityMask
The SetThreadAffinityMask function sets a processor affinity mask for the specified thread.

Jaistmathew
February 13th, 2004, 08:11 AM
It is Possible....
if it is multi processor kernel....
NT 4.0 and above are multi processor kernel...



:thumb:

Jais T Mathew

akraus1
February 13th, 2004, 08:24 AM
The first solution is if you have the source code. Another solution is the task manager where you set the thread affinity for every process.
Let the task scheduler dothis automatically so he can balance the load if the other process e.g already has finished and one processor has nothing to do.