Logic - Time measurement

Posted by user73384 on Programmers See other posts from Programmers or by user73384
Published on 2012-11-22T19:21:13Z Indexed on 2012/11/22 23:09 UTC
Read the original article Hit count: 152

To measure the following for tasks-

  • Last execution time and maximum execution time for each task.

  • CPU load/time consumed by each task over a defined period informed by application at run time.

  • Maximum CPU load consumed by each task.

Tasks have following characteristics-

  • First task runs as background – Event information for entering only

  • Second task - periodic – Event information for entering and exiting from task

  • Third task is interrupt , can start any time – no information available from this task

  • Forth task highest priority interrupt , can start any time – Event information for entering and exiting from task

  • Should use least possible execution time and memory.

  • 32bit increment timer available for time counting.

Lets prepare and discuss the logic, It’s OK to have limitations …!

Questions on understanding problem statement are welcome

© Programmers or respective owner

Related posts about algorithms

Related posts about c