Home > Software engineering > I use the timer SetTimer, program rose from 0 to 30% CPU utilization, why? Program card
I use the timer SetTimer, program rose from 0 to 30% CPU utilization, why? Program card
Time:09-16
The SetTimer (NULL, 1, 1000, & amp; PrintSTR); The SetTimer (NULL, 2, 10000, & amp; PrintFa);
I use the timer SetTimer, program rose from 0 to 30% CPU utilization, why? Program card
CodePudding user response:
That should see printSTR printFa in do? Timer message priority was very low, but the call is also go message queue General running time longer call, it is recommended to use a background thread to manipulate
CodePudding user response:
What did you do in the callback function operation?
CodePudding user response:
I put the callback function the delete deleted, then system CPU utilization have recovered,
CodePudding user response:
Blast die use less as far as possible inside timer, consider multi-purpose thread