How to change time-slice in win2k&nt

As we know, every thread in windows have its own time-slice.
If I want to change one thread’s time-slice, how to achieve it?
Please give me some suggestions.

yours brucie
xxxxx@sina.com.cn

I don’t know of a way to set the quantum. However, depending on what you’re trying to do, you may find it useful to
change the thread priority, priority boosts, or maybe affinity. On Workstation, I believe foreground and background
threads are treated much differently with respect to quantum. You may be able to achieve your goals running your thread
in the background. Given your question, it’s hard to know whether you’re in user mode or kernel mode and exactly what
you’re trying to achieve. Tell us more about what you’re trying to achieve.

regards

Tom Stonecypher

xxxxx@iStreamConsulting.com
www.iStreamConsulting.com
+1-803-463-6340

“iban” wrote in message news:xxxxx@ntdev…
> As we know, every thread in windows have its own time-slice.
> If I want to change one thread’s time-slice, how to achieve it?
> Please give me some suggestions.
>
> yours brucie
> xxxxx@sina.com.cn
>

IIRC timeslices depend on priority and foreground/background status of
the app only. There are several hardcoded values for them, you cannot
use any value you want.

Max

----- Original Message -----
From: “iban”
To: “NT Developers Interest List”
Sent: Thursday, July 04, 2002 5:11 PM
Subject: [ntdev] How to change time-slice in win2k&nt

> As we know, every thread in windows have its own time-slice.
> If I want to change one thread’s time-slice, how to achieve it?
> Please give me some suggestions.
>
> yours brucie
> xxxxx@sina.com.cn
> b‹š­ç.®·§¶\¬¹??Þv?µ×¯jÉš?¬¶ŠÚç+iû\¢dèº{.n?‰·¬zwZnV§‘隊[h•æ¯z{]zþx
Øyb²Û(²·(