我有与进程关联的 processID。我使用 CreateProcess()
函数创建了这个进程。在它运行期间,我想跟踪它运行的处理器数量以及该可执行文件在多核机器上使用了多少时间。
我想为此编写 C++ 代码;谁可以帮我这个事?
我正在使用 Win XP 多核机器。
最佳答案
Retrieves the process affinity mask for the specified process and the system affinity mask for the system.
Retrieves timing information for the specified process.
关于c++ - 获取运行特定进程的处理器数量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9389839/