On Sun, Mar 26, 2000 at 08:32:49PM -0500, Edgar Hilton wrote:
> I need to mark tasks for execution at a later time. For example, at the
> completion of task A, I want to tell the scheduler to release task A for
> exeecution in exactly X microseconds. Here, X is a number which I don't
> necessarily know a priori, but will be determined on the fly.
>
> Does anybody have suggestions as to how I might be able to accomplish
> this using the RTLv2.0 API? I have considered using the
> "pthread_make_periodic" for one solution. A second solution might be to
What's the problem with that solution?
One possible problem is that pthread_make_periodic may call the
scheduler so it's not advisable to call it from an interrupt routine.
I'm not happy with that, but I don't want to change semantics at this
late date. I have another possible avenue to change do this via clocks,
but it seems like pthread_make_periodic_np should be the correct choicee
here.
pthread_make_periodic_np(target_thread, gettime()+delay, period);
> have the 8254 generate an interrupt which calls some interrupt service
> routine. Unfortunately, this seems to be a recurring requirement in
> several control and rotor dynamics applications that I encounter, so I
> don't see any way around this.
>
> Any ideas, commentaries, and/or war stories on this subject would be
> much appreciated.
>
> -Edgar
>
>
>
> -- [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/
--
---------------------------------------------------------
Victor Yodaiken
FSMLabs: www.fsmlabs.com www.rtlinux.com
FSMLabs is a servicemark and a service of
VJY Associates L.L.C, New Mexico.
-- [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/