# Using semaphores in actor code

**URL:** <https://forums.swift.org/t/using-semaphores-in-actor-code/58301>\
**Category:** Using Swift\
**Tags:** concurrency\
**Created:** [June 20, 2022, 6:48am UTC](https://forums.swift.org/t/using-semaphores-in-actor-code/58301 "2022-06-20T06:48:19Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![tera](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tera/32/38201_2.png) [@tera](https://forums.swift.org/u/tera)\
**Post date:** [February 22, 2024, 12:52pm UTC](https://forums.swift.org/t/using-semaphores-in-actor-code/58301/13 "2024-02-22T12:52:20Z")

</div>

> [@John\_McCall](#):
>
> they still have the fundamental problem that there's absolutely no way to implement the API that doesn't lead to priority inversion

Isn't the same true about [locks](https://forums.swift.org/t/pitch-synchronous-mutual-exclusion-lock)?

---

_[View the full topic](https://forums.swift.org/t/using-semaphores-in-actor-code/58301)._
