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.12
Published
Dec 15, 2020
Platform
linux/amd64
Imports
2 packages
Last checked
4 minutes ago

Tools for package owners.