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.11
Published
Dec 2, 2020
Platform
windows/amd64
Imports
2 packages
Last checked
1 second ago

Tools for package owners.