Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 3.3% on proxy.golang.org
Top 0.1% dependent packages on proxy.golang.org
Top 0.1% dependent repos on proxy.golang.org
Top 7.4% forks on proxy.golang.org
Top 0.1% docker downloads on proxy.golang.org

proxy.golang.org : github.com/tklauser/numcpus

Package numcpus provides information about the number of CPUs in the system. It gets the number of CPUs (online, offline, present, possible or kernel maximum) on Linux, Darwin, FreeBSD, NetBSD, OpenBSD, DragonflyBSD, Solaris/Illumos or Windows systems. On Linux, the information is retrieved by reading the corresponding CPU topology files in /sys/devices/system/cpu. On BSD systems, the information is retrieved using the hw.ncpu and hw.ncpuonline sysctls, if supported. On Windows systems, the information is retrieved using the GetActiveProcessorCount and GetMaximumProcessorCount functions, respectively. Not all functions are supported on Darwin, FreeBSD, NetBSD, OpenBSD, DragonflyBSD, Solaris/Illumos and Windows. ErrNotSupported is returned in case a function is not supported on a particular platform.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/tklauser/numcpus
Keywords: bsd, cpu, cputopology, go, golang, linux, numa, offline, online, unix
License: Apache-2.0
Latest release: 6 months ago
First release: over 3 years ago
Namespace: github.com/tklauser
Dependent packages: 7,242
Dependent repositories: 15,502
Stars: 15 on GitHub
Forks: 7 on GitHub
Docker dependents: 2,573
Docker downloads: 8,953,485,448
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago

    Loading...
    Readme
    Loading...