Cpu affinity inherited by child process

I have a server process that forks many child processes, server process has affinity to cpu core, i don't want that affinity to be inherited by child process (rather os should handle where to run these processes). Is there a way to delink parent child processes with respect to cpu affinity?

Thanks

Answers


You can call sched_setaffinity(2) with all bits set in CPU mask after the fork(2) and before the execve(2).


Need Your Help

can I expose a class from another .net namespace as a class in my namespace?

c# .net namespaces

Can I expose a class from another .net namespace as a class in my namespace? I use a class - antlr.collections.AST - as the return type for a function belonging to a class in my namespace; as a re...

Problems with fetching and parsing using Backbone.js

javascript jquery ajax backbone.js underscore.js

I try to fetch this server: http://cshosting.webfactional.com/api/v1/projects/?format=json

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.