# swiftlang/swift-corelibs-libdispatch

The libdispatch Project, (a.k.a. Grand Central Dispatch), for concurrency on multicore hardware

Repository: https://github.com/swiftlang/swift-corelibs-libdispatch
Canonical: https://ross.abutalabs.com/products/swift-corelibs-libdispatch
Language: C
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T17:27:20+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 28, longevity 100
- inputs: {"age_days": 3950, "days_push": 7, "days_rel": 466, "gap_med": 80.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2600, forks 489 (observed 2026-08-28T04:07:03.302755+00:00)

## What it is
The open-source port of Grand Central Dispatch (libdispatch), Apple's concurrency library for executing concurrent code on multicore hardware. It provides the portable C/pthread-based implementation of the dispatch API on Linux and other non-Darwin platforms, bundled with Swift releases since Swift 3.

## Use cases
- run concurrent tasks on multicore hardware in Swift on Linux
- use Grand Central Dispatch queues outside Apple platforms
- schedule work on serial and concurrent dispatch queues
- build Swift core libraries that rely on libdispatch
- port Darwin dispatch-based code to Linux

## When to choose
- you need GCD-style concurrency in Swift on Linux or other non-Darwin platforms
- you want a proven, low-level C concurrency primitive library
- you are building or maintaining Swift core libraries

## When to avoid
- you are on Darwin/macOS, where the system libdispatch is already provided
- you prefer higher-level structured concurrency (Swift async/await, task groups)
- you need a kernel-integrated scheduler with system-wide load balancing

## Facets
- artifact type: library
- maturity: stable
- function: concurrency
- domain: developer-tools, operating-systems, cross-platform
- platform: c
- tags: grand-central-dispatch, gcd, multicore, thread-scheduling, swift-corelibs, linux, macos, swift

## Member repositories
- swiftlang/swift-corelibs-libdispatch (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:03.302755+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:21:17.099721+00:00, confidence not recorded.
  - readme: https://github.com/swiftlang/swift-corelibs-libdispatch (fetched 2026-08-28T04:07:03.302755+00:00, sha 20b8925d044a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
