<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/os_workgroup_parallel_create",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "c:@F@os_workgroup_parallel_create"
  },
  "title" : "os_workgroup_parallel_create"
}
-->

# os_workgroup_parallel_create

Creates a new workgroup that manges threads working on a single task in parallel.

```
extern os_workgroup_parallel_tos_workgroup_parallel_create(const char *name, os_workgroup_attr_t attr);
```

## Parameters

`name`

An optional name for the workgroup. Use this name to identify the workgroups you create. You may specify `NULL` for this parameter.

`attr`

The attributes you apply to the workgroup.

## Return Value

An opaque workgroup object that tracks a parallel workload.

## Discussion

The returned workgroup doesn’t initially have any associated threads. Join individual threads to the workgroup by calling `os_workgroup_join_self` from the thread itself.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)