High resolution Sleep

  • Thread starter Thread starter Charles Zhang
  • Start date Start date
thanks, point taken.
What are typical quantum values for the default priority class on XP and
CE?

--PA
 
Pavel said:
thanks, point taken.
What are typical quantum values for the default priority class on XP
and CE?

on desktop windows, at least, it depends on what other programs are running.
See the documentation for timeBeginPeriod.
 
The thread quanta on XP depend on whether a thread belongs to a foreground
or a background process, foreground threads have a quantum of 6 (RTC ticks),
others have a quantum of 2. Note that these are the default values and
assume that the priorities are the same, the real quantum can vary at run
time, the scheduler can boost the quantum with a value stored in the
registry.
Don't know the details for CE.
Willy.
 
Back
Top