Re: How do you set time-slicing for Windows XP
- From: "Pavel A." <pavel_a@xxxxxxxxxxxxxxx>
- Date: Fri, 8 Aug 2008 23:28:04 +0300
"Jochen Kalmbach [MVP]" <nospam-Jochen.Kalmbach@xxxxxxxxx> wrote in message news:OIkh96X#IHA.4196@xxxxxxxxxxxxxxxxxxxxxxx
Hi Pavel!
Certainly, time slice unit is based on resolution of the periodic timer tick
( it can not be less than the tick period?)
but these are two different things.
???
See comment in the documentation of "timeBeginPeriod":
<quote>
This function affects a global Windows setting. Windows uses the lowest value (that is, highest resolution) requested by any process. Setting a higher resolution can improve the accuracy of time-out intervals in wait functions. However, it can also reduce overall system performance, because the thread scheduler switches tasks more often. High resolutions can also prevent the CPU power management system from entering power-saving modes. Setting a higher resolution does not improve the accuracy of the high-resolution performance counter.
</quote>
So setting "1" means, that the scheduler will be called much more than normal.
Agreed.
This indicates that the reduction of the thread-quantum is done inside *this* tick-counter. Which leads to the effect, that the thread-switch-count will increase dramaticaly.
Still not sure that the thread quantum would become shorter if the timer ticks more often.
--PA
.
- Follow-Ups:
- Re: How do you set time-slicing for Windows XP
- From: Jochen Kalmbach [MVP]
- Re: How do you set time-slicing for Windows XP
- References:
- How do you set time-slicing for Windows XP
- From: VincentO
- Re: How do you set time-slicing for Windows XP
- From: Jochen Kalmbach [MVP]
- Re: How do you set time-slicing for Windows XP
- From: Alexander Grigoriev
- Re: How do you set time-slicing for Windows XP
- From: Jochen Kalmbach [MVP]
- Re: How do you set time-slicing for Windows XP
- From: Pavel A.
- Re: How do you set time-slicing for Windows XP
- From: Jochen Kalmbach [MVP]
- How do you set time-slicing for Windows XP
- Prev by Date: Re: How do you set time-slicing for Windows XP
- Next by Date: Re: How do you set time-slicing for Windows XP
- Previous by thread: Re: How do you set time-slicing for Windows XP
- Next by thread: Re: How do you set time-slicing for Windows XP
- Index(es):
Relevant Pages
|