Question: From Assignment 1 1. CPUs today have multiple CPUs. Dual-core has 2 processors and Quad-core has 4 processors. Modify your program so that the output

From Assignment 1


1. CPUs today have multiple CPUs. Dual-core has 2 processors and Quad-core has 4 processors. Modify your program so that the output from Assignment #1 now reflects n processors operating at once. To make your program flexible, provide n as a command line argument to the program. The input format is the same, but the output is different. For the example (for n-2) For example if we have 1 CPU Duration User Mary Sue Mary This would result in: Time CPU CPU2 10 IDLE Summary im Mary Sue Note: Be careful! You cannot start a job until it has arrived. 1. CPUs today have multiple CPUs. Dual-core has 2 processors and Quad-core has 4 processors. Modify your program so that the output from Assignment #1 now reflects n processors operating at once. To make your program flexible, provide n as a command line argument to the program. The input format is the same, but the output is different. For the example (for n-2) For example if we have 1 CPU Duration User Mary Sue Mary This would result in: Time CPU CPU2 10 IDLE Summary im Mary Sue Note: Be careful! You cannot start a job until it has arrived
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
