Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide example for setting processor affinity (SMP example) #340

Closed
skliper opened this issue May 10, 2022 · 0 comments · Fixed by #341 or #343
Closed

Provide example for setting processor affinity (SMP example) #340

skliper opened this issue May 10, 2022 · 0 comments · Fixed by #341 or #343
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@skliper
Copy link
Contributor

skliper commented May 10, 2022

Is your feature request related to a problem? Please describe.
SMP is a hot topic these days, we keep saying it's easy but no example provided showing how one could set a thread's CPU affinity.

Describe the solution you'd like
Provide an example for the "simplest" identified method for assigning threads to cores.

Describe alternatives you've considered
There's numerous approaches, this just shows one that assigns threads when created. One could manage threads from a platform specific app, do power management, fault management, etc.

Additional context
See nasa/osal#210, nasa/cFS#427.

Requester Info
Jacob Hageman - NASA/GSFC

@skliper skliper added the enhancement New feature or request label May 10, 2022
@skliper skliper added this to the Draco milestone May 10, 2022
@skliper skliper self-assigned this May 10, 2022
skliper added a commit to skliper/PSP that referenced this issue May 10, 2022
astrogeco added a commit that referenced this issue May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant