Patent ID: 6795797
Filing Date: 2004-09-21
Classification: G06F

Abstract:
An apparatus for measuring a CPU occupancy rate in a real-time system, comprising:a task register unit configured for registering tasks to be measured in flag bits; a task selecting module configured for selecting an address of a flag bit having a high priority among the set flag bits; a count signal generating unit configured for processing the bit address inputted by the task selecting module and for generating a count signal; a count unit configured for counting an execution time of the task in accordance with the count signal; and a CPU for setting the flag bit when the task in executed and for calculating an execution number and the CPU occupancy rate of the task based on a count value generated by the count unit, wherein the count unit comprises: a plurality of logic gates transferring the count signal in accordance with an enable signal; a plurality of counters carrying our a count operation in accordance with the count signal transferred from the logic gates; and a plurality of registers storing output values of the counters.