API Reference › Sync › Sync.cpu_count
method

Sync.cpu_count

Sync.cpu_count() -> int

The machine's logical cores, from 1 to 64. Job.parallel_for runs on that many threads: a pool of one per core but one, plus the caller.

Example

let lanes = Sync.cpu_count()
← All symbols