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

Discussion

Preemption threshold scheduling allows a task to

  • A.be preempted only at the kernel's tick boundaries
  • B.share its stack with the task that preempts it
  • C.run without being preempted by tasks below a stated priority
  • D.raise its own priority for the whole of its execution

Answer: C

Correct answer: run without being preempted by tasks below a stated priority

A task runs at its normal priority when ready but, once running, cannot be preempted by anything below its threshold. This reduces the number of preemptions and lets tasks share stack space, at the cost of some responsiveness - a useful trade where memory is the binding constraint.

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

Post your comment

Please log in or register to post a comment.