Machine-translated by Google. Questions are authored in English.
Top

Discussion

Measuring processor loading by timing the idle task works because

  • A.the idle task runs at the highest priority in the system
  • B.the kernel accounts for every context switch separately
  • C.the idle task is scheduled once per tick regardless of load
  • D.the idle task runs only when nothing else is ready

Answer: D

The fraction of wall-clock time the lowest priority task receives is the fraction the application is not using, which is a very cheap load measurement. Putting a sleep instruction in it complicates the arithmetic, since the sleeping time must still be counted.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.