package processorinfo

import "github.com/Microsoft/hcsshim/internal/processorinfo"

Index

Functions

func ProcessorCount

func ProcessorCount() int32

ProcessorCount calls the win32 API function GetMaximumProcessorCount to get the total number of logical processors on the system. If this fails it will fall back to runtime.NumCPU

Source Files

processor_count.go

Version
v0.8.10
Published
Sep 23, 2020
Platform
darwin/amd64
Imports
2 packages
Last checked
33 minutes ago

Tools for package owners.