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

Discussion

A preemptive kernel differs from a cooperative one in that it

  • A.can take the processor from a running task without its consent
  • B.runs each task to completion before starting the next
  • C.requires every one of its tasks to call a yield function periodically
  • D.assigns every task the same priority by default

Answer: A

Correct answer: can take the processor from a running task without its consent

Preemption is what makes response time predictable: the moment a higher priority task becomes ready, the kernel switches to it. A cooperative kernel depends on every task yielding voluntarily, so one badly behaved task blocks everything and no latency can be guaranteed.

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

Post your comment

Please log in or register to post a comment.