Question

What could be the speedup factor for a program if parallel part was %50 and the...

What could be the speedup factor for a program if parallel part was %50 and the serial part was %50 as well for the following number of threads: 2, 4 and 8.

Homework Answers

Answer #1

Q-> What could be the speedup factor for a program if parallel part was %50 and the serial part was %50 as well for the following number of threads: 2, 4 and 8.

Given:

p = fraction of parallel part of the program = 50% = 0.5

.

let t = no of threads

i) t = 2

speedup = 1 / ( (1-p) + p/t )

=> speedup = 1 / ( 0.5 + 0.5 / 2) = 1.33

.

ii) t = 4

speedup = 1 / ( (1-p) + p/t )

=> speedup = 1 / ( 0.5 + 0.5 / 4) = 1.6

.

iii) t = 8

speedup = 1 / ( (1-p) + p/t )

=> speedup = 1 / ( 0.5 + 0.5 / 8) = 1.77

.

=>

for 2 threads, speedup will be 1.3

for 4 threads, speedup will be 1.6

for 8 threads, speedup will be 1.7

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
For this assignment you need to write a parallel program in C++ using OpenMP for vector...
For this assignment you need to write a parallel program in C++ using OpenMP for vector addition. Assume A, B, C are three vectors of equal length. The program will add the corresponding elements of vectors A and B and will store the sum in the corresponding elements in vector C (in other words C[i] = A[i] + B[i]). Every thread should execute approximately equal number of loop iterations. The only OpenMP directive you are allowed to use is: #pragma...
java thread question. Could you please give me a multiple thread program example that all threads...
java thread question. Could you please give me a multiple thread program example that all threads run in parallel?
Consider a multiprocessor system and a multithreaded program written using the many- to-many threading model. Let...
Consider a multiprocessor system and a multithreaded program written using the many- to-many threading model. Let the number of user-level threads in the program be greater than the number of processors in the system. Discuss the performance implications of the following scenarios. 1. The number of kernel threads allocated to the program is less than the number of processors. 2. The number of kernel threads allocated to the program is equal to the number of processors. 3. The number of...
Solve the following using java Write a program that runs three threads, each thread randomizes a...
Solve the following using java Write a program that runs three threads, each thread randomizes a number between 1 and 100. The main thread waits for all the others to finish, calculates the maximum of the numbers, which were randomized, and prints it. Random number 1: 10 Random number 2: 38 Random number 3: 81 Max: 81 Note: You should create 3 threads in adition to the main thread. Also, you can use a single thread class and create 3...
The following multi-threaded program uses 3 concurrent threads (T0, T1, and T2). The threads are synchronized...
The following multi-threaded program uses 3 concurrent threads (T0, T1, and T2). The threads are synchronized by 3 semaphores (S0, S1, S2). What is the maximum number of times '0' will be printed by thread T0? // Global to all threads Semaphore S0(1), S1(0), S2(0) Thread T0 While (true) S0.wait() print( '0' ) S1.signal() S2.signal() endWhile Thread T1 S1.wait() S0.signal() Thread T2 S2.wait() S0.signal()

How could I create a very basic assembly program that is able to use string literals,...
How could I create a very basic assembly program that is able to use string literals, reserved words, and identifiers? I also need to process some directives, instructions, and labels as well. Could someone generate a simple assembly program to do these things? Thank you! My apologies, x86 processors. It's also a 32-bit program! We are using Visual Studio, and writing 32-bit programs. This program can literally do anything, as long as it meets the following requirements as described above.
What effect could the DMM have when inserted into the circuit in parallel? In series?
What effect could the DMM have when inserted into the circuit in parallel? In series?
A 50 ? resistor is connected in parallel with a 200 ? resistor to a 20...
A 50 ? resistor is connected in parallel with a 200 ? resistor to a 20 V power supply. What is the voltage across the 50 ? resistor? Question 6 options: 20 V 4 V 16 V 15 V
Create a JAVA program to display the numbers 1-10. Although you could program a solution that...
Create a JAVA program to display the numbers 1-10. Although you could program a solution that has ten lines of code like the following, think about why this would be a bad idea when developing a programming solution: Print 1 Print 2 Print 3 Print 4 (continued to Print 10) Note: Examples for Java programs (Loop and no loop) programs are in the "Important Documents" folder / Module 6.
which of the following is not a factor that could influence worker productivity? 1. the level...
which of the following is not a factor that could influence worker productivity? 1. the level of skill and training workers posses will affect their productivity. 2. the amount of automation used in the production process. 3. worker's level of fatigue will affect the direct labor efficiency variance. 4. the quality of direct material used.