[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] Pthread_make_periodic_np() V.S. interrupt-driven scheduling
Zaimin Zhong wrote:
>
> Pthread_make_periodic_np() V.S. interrupt-driven scheduling
>
> Hi, all
>
> I need to schedule executing of a task periodically at a frequency around
> 1kHz. Following possibilities seem to be freasible:
>
> 1) to use pthread_make_periodic_np()
> 2) write a ISR to serve periodic hardware interrupts
>
> I wonder which one is preferred by your RTL-veterans.
>
Hi James
Either will work, 1) is simpler.
Regards, Stuart