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

Discussion

The idle task of a kernel exists to

  • A.measure the execution time of every other task
  • B.handle interrupts that no other task has claimed
  • C.give the processor something to run when no task is ready
  • D.run the kernel's own bookkeeping at the highest available priority

Answer: C

The scheduler must always have something to dispatch, so a task at the lowest priority runs when nothing else can. It is the natural place to put a sleep instruction and, with a hook, to measure how much processor time is spare.

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

Post your comment

Please log in or register to post a comment.