High resolution Sleep

P

Pavel A.

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

--PA
 
B

Ben Voigt [C++ MVP]

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.
 
W

Willy Denoyette [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top