fixed time slices?
- From: "Jan Bruns" <testzugang_janbruns@xxxxxxxx>
- Date: Thu, 21 Jun 2007 22:05:54 +0200
Hallo.
I've noticed that my XP computer seems to handle time-slices
difrent from what I think it used to.
The rule I remember it should be is like defined in the SDK:
| If a higher-priority thread becomes available to run, the system
| ceases to execute the lower-priority thread (without allowing it
| to finish using its time slice), and assigns a full time slice
| to the higher-priority thread.
But now, if I create a process/thread that does nothing but this:
repeat
for i := 0 to n do begin
setWaitableTimer(timer,...);
waitForSingleObjectEx(timer,...);
end;
write_time;
unitl false;
it turns out that the minimum wait intervall seems to be 15ms,
and other timer-inveralls are rounded up to something near a
multiple of that minimum wait intervall, even if I set a
high priority to that process and the system is otherwise idle.
The same thing happens using sleep().
What's going on here?
Gruss
Jan Bruns
.
- Follow-Ups:
- Re: fixed time slices?
- From: Don Burn
- Re: fixed time slices?
- Prev by Date: Win32 PE, ImageHlp, and Checksum (CRC)
- Next by Date: Re: fixed time slices?
- Previous by thread: Win32 PE, ImageHlp, and Checksum (CRC)
- Next by thread: Re: fixed time slices?
- Index(es):
Relevant Pages
|