dynamic priority. Any thread with _higher_ dynamic priority will get CPU no
matter whether the lower priority thread wants it or not.
"Michael K. O'Neill" <mikeathon2000@nospam.hotmail.com> wrote in message
Sleep(0) will cause only a thread switch (and only if there's a waiting
thread with higher priority), and Sleep(1) will cause at least a 10 or 15
msec delay, never any less, depending on the value of the hardware clock.
It formerly was 55 msecs.
Calling Sleep() is almost always the wrong answer. Read "Time is the
simplest thing" at http://www.flounder.com/time.htm .
Tell us what you want to achieve.
In direct answer to your question, look at the multimedia timer, such as
the
timeSetEvent() function:
http://msdn.microsoft.com/library/en-us/multimed/htm/_win32_timesetevent.asp
Mike
"Susan Rice" <srice1@cox.net> wrote in message
news:SC7Zh.212013$ZA5.31230@newsfe15.phx...
What would be a way I could delay less than sleep(1)?
Apparently asking for one millisecond really slows it down
more than I want.