github.com/tklauser/numcpus
go
pkg:golang/github.com/tklauser/numcpus
34 Dependabot PRs
6 months ago
19 repositories
0 repositories
Recent PRs (filtered by: Closed )
deps(deps): bump the go-dependencies group with 15 updates
chore(deps): bump github.com/tklauser/numcpus from 0.6.1 to 0.11.0 in /testhelpers/tck
gofiber/storage #2151
chore(deps): bump github.com/tklauser/numcpus from 0.6.1 to 0.11.0 in /postgres
gofiber/storage #2108
chore(deps): bump github.com/tklauser/numcpus from 0.6.1 to 0.11.0 in /dynamodb
gofiber/storage #2065
chore(deps): bump github.com/tklauser/numcpus from 0.6.1 to 0.11.0 in /cassandra
gofiber/storage #2044
build(deps): bump github.com/tklauser/numcpus from 0.10.0 to 0.11.0 in /v3/monitor
gofiber/contrib #1502
deps(deps): bump the production-dependencies group across 1 directory with 3 updates
antinvestor/service-authentication #491
chore(deps): bump github.com/tklauser/numcpus from 0.10.0 to 0.11.0
golanglib/dependabot_botherer #7255
chore(deps): bump the minor-and-patch group with 65 updates
deps(deps): bump the production-dependencies group with 19 updates
antinvestor/service-authentication #429
chore(deps): bump the go-modules group with 69 updates
Bump the go-modules group across 1 directory with 24 updates
paketo-buildpacks/ruby #1209
Bump the go-modules group across 1 directory with 44 updates
paketo-buildpacks/dotnet-core-sdk #889
Bump the go-modules group across 1 directory with 44 updates
paketo-buildpacks/dotnet-execute #761
Package Details
| Name: | github.com/tklauser/numcpus |
| Ecosystem: | go |
| PURL Type: | golang |
| Package URL: | pkg:golang/github.com/tklauser/numcpus |
| JSON API: | View JSON |
Package Information
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.
| Repository: | https://github.com/tklauser/numcpus |
| Homepage: | https://github.com/tklauser/numcpus |
| Latest Release: |
v0.10.0
over 1 year ago |
| Dependent Repos: | 15,502 |
| Dependent Packages: | 7,242 |
| Ranking: | Top 0.0579% by dependent repos Top 0.026% by dependent pkgs |