Kenneth Jacker ([EMAIL PROTECTED]) wrote:
> Reading the GettingStarted.txt file, I saw what appeared to be two
> different ways to cause a thread to execute periodically:
> 
>         o  pthread_setperiod_np()

This one is obsolete.

> 
>         o  pthread_make_periodic_np()
> 
> 
> Questions:
> 
>         o  Why two period-setting functions?  What is the advantage of
>            one over the other?

You should only use pthread_make_periodic_np.
> 
>         o  What are the units for the "period" in pthread_make_periodic_np?
>            Nanoseconds? This doesn't appear to be documented.

nanoseconds. Thanks for the tip, I'll fix the manpage.

> 
>         o  Most of the examples only create the thread in
>            init_module, and specify attributes and scheduling params
>            in the function associated with the thread.  Are there
>            any problems/consequences in doing the "thread initialization"
>            stuff in init_module?

Not unless it's SMP, and you have the thread to run on another CPU.
Not all thread operations are SMP-safe in RTL.

Michael.
--- [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