V
Vladimir Bunyakin
> I have got delays of about maximum 2 seconds on my (quite
> unfriendly) test. The test lasted for about 10 minutes so
...
> Please note: I was definitively NOT fair to the OS in this test
> and the about 2 second delay occured one or two times. My test
> program took as much processor time as it could and measured ...
Tests differ...
We are probably talking about different 'delays'.
My test runs idle thread with such (not exactly) loop
while(1)
{
QueryPerformanceCounter(Time1);
Sleep(10);
QueryPerformanceCounter(Time2);
}
and a histogram of delays is built while test is running. Value [(Time2-Time1)-10 ms] is referred as 'delay'. The idea is to evaluate how the OS and the applications run at _normal_ priority affect the "control program" (consisting of 'Sleep' function in this case). I.e. the program asks the OS to perform certain activity (call
'QueryPerformanceCounter' function) at certain time (Time1 + 10 ms), and it is OS's responsibility to fulfil program's request. Programmer's responsibility is to write proper codes besides 'Sleep'
Of course applications run during the testing provided CPU usage about 100%, memory usage above physical memory and extensive disk activity.
--
Vladimir Bunyakin
> unfriendly) test. The test lasted for about 10 minutes so
...
> Please note: I was definitively NOT fair to the OS in this test
> and the about 2 second delay occured one or two times. My test
> program took as much processor time as it could and measured ...
Tests differ...
We are probably talking about different 'delays'.
My test runs idle thread with such (not exactly) loop
while(1)
{
QueryPerformanceCounter(Time1);
Sleep(10);
QueryPerformanceCounter(Time2);
}
and a histogram of delays is built while test is running. Value [(Time2-Time1)-10 ms] is referred as 'delay'. The idea is to evaluate how the OS and the applications run at _normal_ priority affect the "control program" (consisting of 'Sleep' function in this case). I.e. the program asks the OS to perform certain activity (call
'QueryPerformanceCounter' function) at certain time (Time1 + 10 ms), and it is OS's responsibility to fulfil program's request. Programmer's responsibility is to write proper codes besides 'Sleep'
Of course applications run during the testing provided CPU usage about 100%, memory usage above physical memory and extensive disk activity.
--
Vladimir Bunyakin