Find the program on which you want to set affinity. Click on details and then right-click on the program you want to set affinity for. Windows Server 2003 and Windows XP: The handle must have the THREAD_SET_INFORMATION and THREAD_QUERY_INFORMATION access rights.

1. 1.

The affinity mask for the thread. If set affinity 'CPU0 - CPU1' for service A, set affinity 'CPU 2- CPU3' for service B. Press ctrl + alt + del to bring up the Windows Task Manager, and navigate to the Processes tab. If allocate all CPUs to the two services, means set the same affinity for the two services, then set service A priority with 'High', set service B priority with 'Normal'. Uncheck Now, simply check off the core you want this specific program to run on. 2. On a system with more than 64 processors, the affinity mask must specify processors in the thread's current processor group. dwThreadAffinityMask.

Right-click it, and select Set Affinity. In order to set the affinity for a program, that program needs to be running in the background. Detail View of Task Manager 3. Return value

2. Right-click on your taskbar and open the task manager, where you’ll see a list of all of the processes that are running at any given time.