Time slice on Windows 2000/NT

  • Thread starter Alexander Ivanovski
  • Start date


Alexander Ivanovski

Does anybody know how to configure the Windows scheduler?
I need to change a time slice (quantum) on Windows
2000/NT/XP within my own application (user level 3). Is
there any special API?





I'm pretty sure that you can't alter the quantum in Windows 2000 or XP.
There was a way in NT to change the quantum using the registry, but I can't
remember it now...I seem to recall reading it on www.sysinternals.com, but
that's just a guess. At any rate, it was a "bug", because a process could
alter the quantum so that it never ran out, which would kinda defeat the
purpose of having a preemptive-multitasking system :)

You can influence how often your threads get scheduled, though. Check out
SetThreadPriority() and SetPriorityClass().


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