Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在调用 fork() 时,有哪些做法可以保证子进程可以在单独的内核上并行运行?
没有任何。您可以将父进程和子进程设置为具有不相交的亲缘关系,但不能强制它们并行运行。