Re: Problems with fast timeouts

2003-01-13 Thread Krzysztof Dubowik
Hi, I wanted my timeout function to be called 200 times per second. Another words, my timeout function to be called every 5 miliseconds. why? what's the actual problem behind it? It's a simulator of a measuring device where the sampling rate is fixed at 200Hz. I want to draw the

Re: Problems with fast timeouts

2003-01-13 Thread Krzysztof Dubowik
Hi, Thanks for all your answers, you've been very helpful. I think I got the basic idea and I'll be able to carry on now. I do not know your background, Krisz, but this is pretty much a homework lesson done on realtime university courses. I wish my university did realtime programming

Re: Problems with fast timeouts

2003-01-13 Thread Valdis . Kletnieks
On Sat, 11 Jan 2003 13:53:27 +0100, Krzysztof Dubowik said: It's a simulator of a measuring device where the sampling rate is fixed at 200Hz. I want to draw the graph at real-time - 1 pixel per 5ms. Optimization 1: Remember that the actual monitor probably won't be refreshing any faster than

Re: Problems with fast timeouts

2003-01-11 Thread Paul Davis
It's a simulator of a measuring device where the sampling rate is fixed at 2 00Hz. I want to draw the graph at real-time - 1 pixel per 5ms. Well, Krisz, there is no realtime anyway. The x11 display system is strictly decoupled from your program, draw requests will not draw on the screen but

Re: Problems with fast timeouts

2003-01-08 Thread Krzysztof Dubowik
[ i am assuming that you are working on linux, which might be a big assumption. if not, then ignore all that i write here. ] you're using a multitasking, multiuser operating system with a scheduling granularity of 10ms. the kernel will to honor the 5ms request but will fail to

RE: Problems with fast timeouts

2003-01-08 Thread Torti, Richard A
, meaning within another year, this won't be an issue. Rich -Original Message- From: Krzysztof Dubowik [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 3:03 AM To: [EMAIL PROTECTED] Subject: Re: Problems with fast timeouts [ i am assuming that you are working on linux

Re: Problems with fast timeouts

2003-01-08 Thread Paul Davis
I am poting my application from Windows MFC (where is does happily 5ms timeout s) to Linux. I would rather have my application to run on a standard kernel, s o what's the solution? Where do I learn about realtime scheduling? well, the standard kernel is about to move to HZ=1000 (2.5 changed this,

Re: Problems with fast timeouts

2003-01-08 Thread Guido Draheim
Krzysztof Dubowik schrieb: Hi, I wanted my timeout function to be called 200 times per second. Another words, my timeout function to be called every 5 miliseconds. why? what's the actual problem behind it? ___ gtk-list mailing list [EMAIL

Re: Problems with fast timeouts

2003-01-05 Thread Karsten Borgwaldt
Am Sonntag, 5. Januar 2003 01:40 schrieb Paul Davis: I wanted my timeout function to be called 200 times per second. Another word s, my timeout function to be called every 5 miliseconds. However, when I mesur ed the intervals with gettimeofday I found out that the timeout function was c

Re: Problems with fast timeouts

2003-01-04 Thread Paul Davis
I wanted my timeout function to be called 200 times per second. Another word s, my timeout function to be called every 5 miliseconds. However, when I mesur ed the intervals with gettimeofday I found out that the timeout function was c alled ca every 20ms. My timeout function exectutes within