Multi Core question
-
Hi I have C/C++ solution/project The parent process is C the child process is MFC C++. Each in its own project The C project has a number of threads. I have a quad core laptop. Is there any way of knowing how many cores the .exe(s) is/are using. Don't know if task manager is the answer. More so can I have an affinity of a thread to a core ? Thanks
-
Hi I have C/C++ solution/project The parent process is C the child process is MFC C++. Each in its own project The C project has a number of threads. I have a quad core laptop. Is there any way of knowing how many cores the .exe(s) is/are using. Don't know if task manager is the answer. More so can I have an affinity of a thread to a core ? Thanks
It is all handled by the operation system. Don't care about. While it is possible to set a thread affinity it is usually not necessary and often counterproductive. If a process has multiple threads it will use multiple cores when available. But there is no single core assigned to a specific thread. The OS assigns the cores so that a thread runs on different cores.
-
It is all handled by the operation system. Don't care about. While it is possible to set a thread affinity it is usually not necessary and often counterproductive. If a process has multiple threads it will use multiple cores when available. But there is no single core assigned to a specific thread. The OS assigns the cores so that a thread runs on different cores.
-
Is there anything in task manager or VS debugger or maybe the Kernal debugger that would show me any information about this Thanks
Showing information about the core that runs a specific thread makes no sense due to the fast switching between the cores. For process information have a look at the Sysinternals Suite[^].
-
Showing information about the core that runs a specific thread makes no sense due to the fast switching between the cores. For process information have a look at the Sysinternals Suite[^].