----- 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/