# zx_system_get_num_cpus

## Summary

Get number of logical processors on the system.

## Declaration

    #include <zircon/syscalls.h>

    uint32_t zx_system_get_num_cpus(void);

## Description

`zx_system_get_num_cpus()` returns the number of CPUs (logical processors)
that exist on the system currently running. This number cannot change
during a run of the system, only at boot time.

## Rights

TODO(https://fxbug.dev/42107318)

## Return value

`zx_system_get_num_cpus()` returns the number of CPUs.

## Errors

`zx_system_get_num_cpus()` cannot fail.

## Notes

## See also

- [`zx_system_get_physmem()`](https://fuchsia.dev/reference/syscalls/system_get_physmem)