How can i implement a system tick

If i want to implement a RTOS kernel,so how can i implement the System Tick part of it,I know the simple algorithm is that decrements a count variable in every task control block in a loop,however,i think it's ineffective!So,Does anybody have some more effective methods?!
regrads,thanks!!!

Comments

  • You must sync with a hardware timer. How that is done is CPU/MCU dependant.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion