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

Discussion

The priority ceiling protocol assigns to each resource a priority equal to

  • A.the priority of whichever task currently holds it
  • B.that of the highest priority task that may use it
  • C.that of the lowest priority task that may use it
  • D.the average priority of the tasks that use it

Answer: B

Correct answer: that of the highest priority task that may use it

The ceiling is set from the whole set of potential users rather than the current one, and a task may lock a resource only if its priority exceeds every ceiling currently held by another task. That rule bounds the blocking to one critical section and prevents deadlock outright, which priority inheritance alone does not.

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

Post your comment

Please log in or register to post a comment.