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

Discussion

Statement I: priority inheritance bounds the blocking time. Statement II: the lock holder runs at the priority of the highest task waiting for it.

  • A.both statements are true but the second does not explain the first
  • B.the first statement is true and the second is false
  • C.the first statement is false although the second is true
  • D.both statements are true and the second explains the first

Answer: D

Running at the elevated priority is exactly what prevents an intermediate task from extending the wait, so the blocking reduces to the length of the critical section. The mechanism named in the second statement is the reason for the property claimed in the first.

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

Post your comment

Please log in or register to post a comment.