Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

The following Fortran program is to be executed on a uniprocessor, and a parallel version is to be executed on a shared - memory multiprocessor.

The following Fortran program is
to be executed on a uniprocessor, and a parallel
version is to be executed on a shared-memory
multiprocessor.
L.1: Do10I=1,1024
L2: ??(I)=0
L.3: Do20J=1,1
L4: 20,??(I)=sun(I)+I
L5: 10 Continue
Suppose statements 2 and 4 each take two
machine cycle times, including all CPU and memory-
access activities. Ignore the overhead caused by the
software loop control (statements L1, L3, and L5)
and all other system overhead and resource con-
flicts.
(a) What is the toal execution time of the
program on a uniprocessor?
(b) Divide the outer loop iterations among
32 processors with prescheduling as follows:
Processor 1 executes the first 32 iterations
to 32). processor 2 executes the
next 32 iterations to 64
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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