Categorygithub.com/tsingson/cpuaffinity
modulepackage
0.0.3
Repository: https://github.com/tsingson/cpuaffinity.git
Documentation: pkg.go.dev

# README

cpu affinity for go goroutine

pin goroutine to cpu core , linux / unix only, for testing and research

1. code copyright

/goine fork from https://github.com/jandos/gofine by Zhandos Zhylkaidar ( jandos ). --- unix only

/affinity copy from https://pythonwise.blogspot.com/2019/03/cpu-affinity-in-go.html by Miki Tebeka --- linux only

2. DO NOT use in product

Do not use in product, ASIS

3. example

check example path

# Packages

No description provided by the author

# Constants

Available represents an lgore which can be occupied.
Busy represents an lgore which is occupied.
Invalid state for non-existing lgores.

# Structs

Config environment config.
Environment manages all the lgores.

# Type aliases

LgoreState represents lgore's current state.