Saying that I have a program, which will fork three sub-processes, meaning that it will create four processes in total while running.

My ubuntu server has 16 CPUs.

Is it possible to assign the CPU resources to the four processes?

For example, I force the four processes to execute on one CPU, or I force the process A and B to execute on one CPU and C and D to execute on another CPU?

I've heard a tool named cpulimit but I don't think it can help me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.