2 .\" * Copyright (c) 2023 Piotr Paweł Stefaniak
4 .\" * SPDX-License-Identifier: BSD-2-Clause
11 .Nd print the number of processors
15 .Op Fl -ignore Ns = Ns Ar count
21 utility is used to print the number of processors limited to the
23 of the current process, unless the
27 The available flags are:
30 Count all processors currently online.
31 .It Fl -ignore Ns = Ns Ar count
32 The result is decreased by
36 Print the current program version and exit.
37 Do not use this option.
39 Print usage information and exit.
42 This program is intended to be compatible with nproc as found in GNU coreutils.
44 If HyperThreading is enabled in BIOS and disabled in the kernel, the
46 option on Linux will still report all possible CPU threads.
47 On FreeBSD only active threads will be reported.
53 utility first appeared in
57 .An Mateusz Guzik Aq Mt mjg@FreeBSD.org
59 .An Piotr Paweł Stefaniak Aq Mt pstef@FreeBSD.org