Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve ALL the exercises Thank you in advance 1. 80% of a program running in a quad-core CPU can be parallelized. What is the maximum

image text in transcribed

Solve ALL the exercises

Thank you in advance

1. 80% of a program running in a quad-core CPU can be parallelized. What is the maximum speed-up? What would be the maximum speed-up if the number of cores approached infinity? 2. There are two parallel threads, A, B and C, both running the following code in a SMP computer x = x + 5; System.out.println(x); The architecture is MIPS, in which the statement x = x+ 5 is compiled to: lw $80, 0(x) addi $80, $50, 5 sw $s0, 0 (x) If the thread instructions can be interleaved in an arbitrary manner (non-deterministic) what will be the possible outputs, if x is initially 0? 3. Suppose you want to perform two sums: one is a sum of 5 scalar variables, and one is a matrix sum of a pair of two-dimensional arrays, with dimensions 50 by 50. What speed-up do you get with 4, versus 10, versus 100 processors

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions