From Muttley@Muttley@dastardlyhq.com to comp.unix.programmer on Sat May 31 16:46:48 2025
From Newsgroup: comp.unix.programmer
The CPU_* macros and sched_setaffinity() etc allow you to try and force a
given process to run on a given CPU/core , but is there a way to set the affinity of a process yet to be created by fork() ? Eg if I have a parent process running on CPU 0 can I make it so that the child will run on CPU 1 before the child is created so that the child itself doesn't have to set
the affinity? I'm thinking of situations with fork-exec when the exec'd
binary won't set any affinity so the parent needs to do it for it.
Thanks for any help.
--- Synchronet 3.21d-Linux NewsLink 1.2
Who's Online
Recent Visitors
Geek2
Wed Oct 21 12:39:55 2026
from
Euclid, Oh
via
Telnet
Geek2
Tue Oct 20 10:52:13 2026
from
Euclid, Oh
via
Telnet
Guest
Mon Oct 19 02:46:36 2026
from
Me, Home
via
Telnet
Geek2
Sun Oct 18 17:09:58 2026
from
Euclid, Oh
via
Telnet