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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!