execution time in TSR

Joel Sherrill joel.sherrill at OARcorp.com
Mon Apr 5 16:54:27 UTC 2004


Stan wrote:

> Hi,
> 
> Why is need to limit execution times in Timer Service Routines ?

Because the timers scheduled by rtems_timer_fire_* are executed
inside the clock tick ISR.  If they get heavy, then the system
will spend too long in ISRs.

There is a set of services rtems_timer_server_fire_* which
schedule the TSRs to be executed in the context of a server
task.  It is safer to have longer execution time here but
still there is only one server for the entire set of server
scheduled TSRs.

>         Stan .
> 

--joel
> 





More information about the users mailing list