0

I ask this question because I'd like to know this from my kernel mode Windows driver.

I have some library code porting from user mode that has some accompanying stress test to run; that stress test code need to know when CPU is idle.

Simple googling shows no result, at least from first several pages.

Jimm Chen
  • 3,411
  • 3
  • 35
  • 59

1 Answers1

1

you need use ZwQuerySystemInformation with SystemProcessorPerformanceInformation infoclass ( you got a array of SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION structures on output)

RbMm
  • 31,280
  • 3
  • 35
  • 56