Hi Dingrong,

Wednesday, January 10, 2001, 7:34:39 PM, you wrote:

DY> Hello all RTLinux users and developers,

DY> I need to schdule a  procedure  by a timer at every (around) 1 ms.  I
DY> set  the time interval of the XtAppAddTimeOut to be 1ms. But I am
DY> uncertain is the resolution of linux timer is such fine or not? Tijs
DY> suggested to modify parameter HZ of
DY> /usr/src/linux/include/asm-i386/param.h to 1024 for a 2ms timing
DY> (attached at the end). Does it  mean if modify HZ to 2048 may get a 1ms
DY> resolution timing? If so, what  should I do after this modification so
DY> that this modification may be  effective?
i think you could do so, but that would let the system timer generate
an interrupt every 1 ms. i think your machine will end up processing
the interrupt handlers while giving less cpu time to your application
(or worst case NO cpu time ...)

DY> I am booting with RTLinux-2.0. The reason why I do this high frequency
DY> (1000 Hz)  task in linux instead of RTLinux is because this task need to
DY> use lots of  graphics, big memory (60M) for object modeling, etc which are
DY> cubersome to do in RTLinux.
if you could do it, i will change my religion at once .... ;)

...
>>
>> This works for x86 only:
>> Try using #define HZ 1024 or some other high number in
>> /usr/src/linux/include/asm-i386/param.h
>>
>> Usually it's 100 and that accounts for the (what I thought were 10) 20
>> ms.
i thought it were 10 ms too .... ?

mailto:[EMAIL PROTECTED]


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to