I recall that someone had created a different scheduler that might solve your problem. I believe it was an "earliest deadline first" priority scheduler. If your other threads take longer than this critical thread then this other scheduler might work for you. You would have to search the archives to find it. I don't remember who created it or where it is located. It may not have been updated to the latest revisions of rtlinux as well.
good luck, Rich -----Original Message----- From: Norm Dresner [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 25, 2001 8:27 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [rtl] oneshot thread ----- Original Message ----- From: Massimiliano Cialdi <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 25, 2001 5:29 AM Subject: Re: [rtl] oneshot thread > Massimiliano Cialdi wrote: > > > > Norm Dresner wrote: > > > > > > If you have a 2 second deadline and a routine that takes, > > > say, 150 milliseconds to execute, then set the sleep for > > > 1.85 seconds and you'll meet your deadline. Unfortunately > > I don't know how long is routine: it's hardware dependent! > Another problem is that the scheduler must know where dead line is for a > thread, otherwise this thread could be preempted by another thread. > If I simply use clock_nanosleep(), I don't think that the scheduler > would know about thread dead line. That's what thread priorities are all about. And you can at least get a good estimate of how long the routine takes by timing it on various configurations. Norm > > thanks > -- > Massimiliano Cialdi > [EMAIL PROTECTED] > [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/ > -- [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/ -- [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/
