Setting the Preferred Processor for a Thread
- Mise à jour2023-02-21
- Temps de lecture : 1 minute(s)
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
|
