Setting the Preferred Processor for a Thread
- Updated2023-02-21
- 1 minute(s) read
Setting the Preferred Processor for a Thread
You can use the following Windows SDK functions if you want to set a processor for threads in your program.
- Call SetThreadIdealProcessor if you need to specify the processor on which to run a particular thread.
- Call SetProcessAffinityMask to specify the processors on which the threads in your program are allowed to run.
- Call SetThreadAffinityMask to specify processors on which a particular thread in your program is allowed to run.
Note
|