Skip to content

API to check whether any thread is bound to a specific core #530

@bgoglin

Description

@bgoglin

Given a specific core (or maybe whatever object), find a way to check whether any thread is bound to it.
This was requested for threads within a single process (to avoid binding another thread on the same core), but could be for the entire system too.

"Bound to it" could mean "thread binding contains the object" (the thread MAY execute on that object), or "binding is included in the object" (the thread executes on that object).

Not easy to implement in a portable way on top of hwloc since there's no portable way to list threads within a process or in the entire system.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions