Question: Write a program that compares performance for a program that forks several processes when processes are limited to run on a single processor to the
Write a program that compares performance for a program that forks several processes when processes are limited to run on a single processor to the performance of the same code run on multiple processors. The program should set processor affinity for all created processes to run on the same cpu and compare it with the same code run without restricting where Linux is allowed to run the processes. Use gettimeofday() and fork() in your code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
