Question

System A has two processors. Program X takes 10 seconds to execute on one of the...

System A has two processors. Program X takes 10 seconds to execute on one of the processors. Program Y takes 10 seconds to execute in parallel on the other processor. System B has a single processor that can execute only one program at a time. Program X takes 6 seconds to execute on this processor. Program Y takes 6 seconds to execute on this processor. Which system would you pick if you cared about overall system throughput?

Homework Answers

Answer #1

Let is consider that both the processes are submitted at the same time to system A.
System A would then instantly start programming X on one processor and Y on another.

Assuming that multi-processing is not allowed on system B. System B would have to wait 6 seconds for the first process
to finish until it starts second one, so its clear that response times are quicker on system A

Hence, I would pick system A if I cared about program response time. Throughput is calculate by average time spent by turnaround time.

System A:
Program A (1st -10th second) total = 10 seconds
Program B (1st -10th second) total = 10 seconds
On average it takes 5 seconds (=10/2)


System B:
Program X (1st 6th second) = total of 6 seconds
Program Y(6th =12th second) = total of 12 seconds

On average its takes 6 seconds (=12/2)

So it obvious we should go with system A

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
A certain program consists of three independent parts A, B and C that can execute in...
A certain program consists of three independent parts A, B and C that can execute in parallel on separate processors within a multiprocessor system. None of the parts can be further subdivided and each part must execute on a single processor. Part A requires 78 billion cycles to complete, part B requires 40 billion cycles to complete and part C requires 62 billion cycles. The program is executed on an SMP system with 4 identical processors all running at the...
Another different program consists of a purely sequential part that requires 20 seconds to execute on...
Another different program consists of a purely sequential part that requires 20 seconds to execute on a single-core processor. The sequential part must execute first and is followed by a parallel part containing 4 independent tasks each of which takes 12 seconds to run? a) What is the total execution time for the entire program on the single-core processor? b) Compared to the single-core processor, what is the actual speedup achieved by running the program on a 4-core version of...
Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a...
Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 2.5 GHz clock rate and a CPI of 1.25. P2 has a 3 GHz clock rate and a CPI of 1.6. P3 has a 4.0 GHz clock rate and has unknown CPI. a. (5 points) Compare the performance of P1 and P2 in terms of number of instructions they can execute per second. b. (5 points) Program X is executed by P1 in 20...
When a program is run on Computer X, 65% of the execution time is CPU time....
When a program is run on Computer X, 65% of the execution time is CPU time. A better Computer Y reduces the execution time by 10%. It is known that Computer Y has a clock rate of 2.7 GHz, and it takes Computer Y 10% more clock cycles to execute the program. In addition, Computer Y can only reduce CPU time. What is the clock rate in GHz of Computer X? The answer must have exactly one digit after the...
Suppose a computer program has a method that cannot be parallelized and the method accounts for...
Suppose a computer program has a method that cannot be parallelized and the method accounts for 40% of the programs execution time. What is the limit on the overall speedup that can be achieved on an 10-processor machine? Is there a limit if we can use as many processors as we want.
When a program is run on Computer X, 50% of the execution time is CPU time...
When a program is run on Computer X, 50% of the execution time is CPU time . A better Computer Y reduces the execution time by 10%. It is know that Computer Y has a clock rate of 2.3 GHz, and it takes Computer Y 20% more clock cycles to execute the program. In addition, Computer Y can only reduce CPU time. What is the clock rate in GHz of Computer X?
Ben builds a 1 GHz processor where two important programs, A and B, take one second...
Ben builds a 1 GHz processor where two important programs, A and B, take one second each to execute. Each program has a CPI of 2. Elaine is tasked with designing the company's next-generation processor. She comes up with an idea that improves the CPI of A to 1.5 and the CPI of B to 1.8. But the idea is so complex that the processor can only be implemented with a cycle time of 1.2 ns. Does Elaine's new processor...
1.Write pseudocode for a program that allows the user to input two numbers (X and Y)...
1.Write pseudocode for a program that allows the user to input two numbers (X and Y) and a code C. If the code has value 1, the program should output the larger of X and Y and otherwise output the smaller. Now convert your pseudocode to an assembly language program. Enter the program into the lab software assembler. Assemble the program and execute it with different input data. 2. Write pseudocode for a program that allows the user to input...
Suppose there are two goods, good X and good Y . Both goods are available in...
Suppose there are two goods, good X and good Y . Both goods are available in arbitrary non-negative quantities; that is, the consumption set is R2++. A typical consumption bundle is denoted (x,y), where x is the quantity of good X and y is the quantity of good Y . A consumer, Alia, faces two constraints. First, she has a limited amount of wealth, w > 0, to spend on the goods X and Y , and both of these...
1. An operating system is a. A resource manager b. A user application such as turbo...
1. An operating system is a. A resource manager b. A user application such as turbo t c. A collection of all software packages on the computer d. Another name of my computer including both hardware and software 2. X86 calling convention is about a. How parameters are transferred through stack b. How interrupt vectors are used to find handlers c. How to make a phone call on an x86 computer d. None of the above 3. Paging mechanisms helps...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT