You must justify with calculations each of the following questions:
System A has 2 processors, program X takes 10 sec. to execute, in one of the processors. Program Y takes 10 sec. in parallel running to the other processor.
System B has only one processor that can run only one program at a time. Program X takes 6 seconds to run on this processor. Program Y takes 6 seconds to run on that processor.
Which system would you choose if the most important thing is the throughput system?
You must justify with calculations each of the following questions: System A has 2 processors, program...
About computer architecture and organization. Please solve those questions Thank you 2. A certain program has the following instruction classes, CPIs, and mixtures: Instruction Type CPI ratio 1.5 .40 2.1 .35 3 a. What is the average CPI for this processor? b. You have the following options: • Option 1: Reduce the CPI of instruction type B to 1.8 • Option 2: Reduce the CPI of instruction type C to 2.5 Which option would you choose and why? 3. Consider...
Design and implement a C Language program that measures the performance of given processors. There are several metrics that measure the performance of a processor. We will be using the following 3 measures: 1.CPI (clock cycles per instruction) = #clock cycles /#instructions 2.CPU execution time = #instructions x CPI x clock cycle time . cylce time = 1/CPU clock rate in hertz units 3.MIPS (mega instructions per second)= #instrucrions/ CPU X 1000000 Typically, processors’ performance is measured using a wide...
Problem 3. (25 pts.) Compilers can have a profound impact on the performance of an application. Assume that for a program, compiler A results in a dynamic instruction count of 1 billion instructions and has an execution time of 1.1 seconds, while compiler B results in a dynamic instruction count of 1.2 billion instructions and an execution time of 1.5 seconds. A) Find the average CPI for each program given that the processor has a clock cycle time of 1...
you are going to write a program, fastfactor, to find all the inegral factors of a number (integer). the program must be written in C. note that in C (as in most languages) % is a remainder operator, so if x % 3 == 0 that means 3 is a factor of x. you are going to write fastfactor to work like a "standard" UNIX command: the user can invoke the command like fastfactor 12 13 which would output 12:...
Implement the histogram function to complete the desired program. You must use dynamically allocated arrays for this purpose. For your initial implementation, use ordered insertion to keep the words in order and ordered sequential search when looking for words. Note that the array utility functions from the lecture notes are available to you as art of the provided code. Although we are counting words in this program, the general pattern of counting occurrences of things is a common analysis step...
Overview: In this lab, you will write a program called JobScheduler; it should take a single input file as a command-line argument. Each line in the input file has the following format: <job #> <priority> <arrival time (sec)> <duration (sec)> e.g. a file might contain: 1 3 10 100 5 2 20 50 8 4 5 100 (all values will be positive integers) These jobs might represent computer programs (or threads) that need to be run by the operating system....
Create a C++ program that fulfills the requirements of the following prompt: This program will create a text-based squad versus squad battling game. The game will be set up so that two players can play and each player will control a squad. Each member of the squad will have basic and special abilities. When one squad has been fully defeated, that player will be declared the loser. The program will then exit. The basis of this program will require the...
1.You are to write a program name search.java that will do the following: 2.You are to create 3 arrays - prompt the user for a number that is greater than 100 that will serve as the size for the arrays (all 3 arrays will have the same user input size). Call them A, B & C. 3.Generate this amount of random numbers to fill these arrays – the random numbers must range from 1 to 99. 4.Write 1 sequential search...
3. Use x = A-17 (you must) to solve the following system. It is known that the system has unique solution 2.0 + y + z = 4 10.x - 2y + 2z = -1 6.x - 2y + 4z = 8 (Answer: x = -1/2, y = 3/2 and 2 = 7/2)
Part V: Solve Question 2 Part VI: Solve Questions 2 & 3 Part V (30 points each): Solve ONE of the following. and solve an IVP in order to receive any credit. In each problem you must completely set up 1. A 1000 liter tank initially contains 600 liters of salt water with 50 grams of salt dissolved in it. Salt water flows into the tank at a rate of 2 liters/hr with a concentration of 6 grams/liter and a...