# Nested Mutexes and Priority Inheritance

**URL:** <https://forums.freertos.org/t/nested-mutexes-and-priority-inheritance/369>\
**Category:** Kernel\
**Created:** [March 22, 2010, 12:45am UTC](https://forums.freertos.org/t/nested-mutexes-and-priority-inheritance/369 "2010-03-22T00:45:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 23, 2010, 11:59am UTC](https://forums.freertos.org/t/nested-mutexes-and-priority-inheritance/369/2 "2010-03-23T11:59:40Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, March 23, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/0d68de4e/#58b9):

Whether or not it will cause problems depends on the the priorities of the tasks holding the mutexes.

The priority inheritance assumes that only one mutex will be held at a time.&nbsp; If two mutexes are held then the priority will be inherited to that of the highest task priority that is attempting to access the same mutex, but will be dropped back to the base priority when either mutex is returned.&nbsp; This could result in some priority inversion, but this won’t necessarily cause you a problem, and in fact some inversion must have already existed for the inheritance to have been triggered in the first place.

Regards.

---

_[View the full topic](https://forums.freertos.org/t/nested-mutexes-and-priority-inheritance/369)._
