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

Discussion

Which change would NOT reduce the blocking a high priority task suffers on a shared resource?

  • A.applying the priority inheritance protocol
  • B.avoiding the shared resource altogether by passing messages
  • C.increasing the priority of the medium priority tasks
  • D.shortening the critical section in the low priority task

Answer: C

Correct answer: increasing the priority of the medium priority tasks

Raising the medium tasks makes matters worse: they preempt the low priority task holding the lock and lengthen the time the high priority task waits, which is unbounded priority inversion in its classic form. The other three all shorten or eliminate the blocking.

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

Post your comment

Please log in or register to post a comment.