The RTOS tick (For FreeRTOS)




The RTOS tick is a fixed interval periodic interrupt generated form a hardware timer.  It is used to measure real time.   The resolution of time that can be measured is dependent on the tick period.
For example, if the RTOS tick frequency is set to 1ms then time can be measured with an accuracy of 1ms  but there is also an overhead of having an interrupt every 1ms.  If this resolution is not necessary (it usually isnt) then the overhead can be reduced by slowing down the tick frequency to say 10 or even 100ms.
The tick interrupt is also used for round robin scheduling.  When there is more than one task that have the same priority and are ready to run, then the tick interrupt is used to switch between the tasks.

Source: link

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel