Skip to content

x/sys/unix: add sched_getaffinity/sched_setaffinity #11243

@wheelcomplex

Description

@wheelcomplex

In Linux system resource manager programing(write in Go), we need sched_setaffinity to limit running CPU list of managed service process(no write in Go, C/C++/Java etc.) and use sched_getaffinity to verify it's corrected limited.

Export sched_getaffinity/sched_setaffinity func will be good for such purpose.

more in google group: https://groups.google.com/forum/#!topic/golang-nuts/99F1rtvcSSI

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions