# Are there plans for Juce to support os\_workgroup\_max\_parallel\_threads?

**URL:** https://forum.juce.com/t/are-there-plans-for-juce-to-support-os-workgroup-max-parallel-threads/58706
**Category:** MacOSX and iOS
**Created:** [November 8, 2023, 8:51am UTC](https://forum.juce.com/t/are-there-plans-for-juce-to-support-os-workgroup-max-parallel-threads/58706 "2023-11-08T08:51:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![onar3d](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/onar3d/32/4972_2.png) [@onar3d](https://forum.juce.com/u/onar3d)
#### Post date: [November 8, 2023, 8:51am UTC](https://forum.juce.com/t/are-there-plans-for-juce-to-support-os-workgroup-max-parallel-threads/58706/1 "2023-11-08T08:51:35Z")

</div>

Apple describes it [here](https://developer.apple.com/documentation/os/3564850-os_workgroup_max_parallel_thread).

And mention it at the end of [this video](https://developer.apple.com/videos/play/wwdc2020/10224/).

More of a nice-to-have than a must have I guess, but it is part of their realtime thread workgroup toolset so a JUCE API for it would make sense.

---

<div class="post-metadata">

### Author: ![wavesequencer](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/wavesequencer/32/11659_2.png) [@wavesequencer](https://forum.juce.com/u/wavesequencer)
#### Post date: [November 13, 2023, 5:57pm UTC](https://forum.juce.com/t/are-there-plans-for-juce-to-support-os-workgroup-max-parallel-threads/58706/2 "2023-11-13T17:57:27Z")

</div>

Might be interesting, if this function actually takes into account the number of already assigned threads on a workgroup, since multiple plugins could have already registered threads on the same workgroup linked to an audio device when you are adding your own.  
(Although the os\_workgroup\_join function does return an error code, and presumably it will do it if the max number of threads has already been added to an existing workgroup.)
