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

Discussion

A recursive mutex allows

  • A.two different tasks to hold it at the same time
  • B.an interrupt handler to release it on the owner's behalf
  • C.the kernel to release it if the owner is deleted
  • D.the owning task to take it again without blocking

Answer: D

The kernel counts the acquisitions and releases the lock only when the count returns to zero, which lets a locked function call another that locks the same resource. It hides a structural problem as often as it solves one.

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

Post your comment

Please log in or register to post a comment.