UNIVERSM
SAINSMALAYSIA
Peperiksaan Semester Pertama Sidang Akademik 1995196
Oktober'/1.{ovem ber I 99 5
CSA401 - Pemprosesan Selari Masa: [3jam]
ARAHAN KEPADA CALON:
.
Sila pastikan bahawa kertas peperiksaanini
mengandungiLlMA.soalan di
dalamEMFAT
muka surat yang berceiak sebelum anda memulakan peperiksaan ini..
JawabSEMUA soalan. Anda
bolehmemilih untuk
menjawabSEBAHAGIAN
daripada soalan
di
dalam BahasaInggeris
atau menjawab keseluruhan soalandi
dalam Bahasa Malaysia.
ENGLISH
VERSION OFTHE
QUESTION PAPER7L
...2t-
lcsA40ll
-2-
I
. (a)
Describe Flynn's classitlcation of computer systems. Discuss as to how various types of parallel computcr systemsfit
into the classification.(8 marks)
(b)
Consider a generalform of
pipeline program,in which
along
sequenceof
data values continuesto flow ttirough the pipeline from beginning to
end.In
this generalpipeline, different typei of
operationsmay
be performedby different processes.
Assumethat thi:-specific operation
performeclby
each processi
iequires Ti time units. Let
processk
bethe
onewith the
largest such time.Explain,
with
suitable timing sketches why the timeTl limits
the performanceof
the pipeline, even
if
all the otherTi
are much less than T16.(4 marks)
(c)
State and explain Amdahl's law.(4 marks)
2. (a) Explain, with
the helpof
simple sketches, demand driven parallel computadon model.the
control driven,
datadriven
and (6 marks)(c)
What arevirtual
processors?Explain, with
a simple example, the mappingof
virtual processors onto the physical processors
in
anSIMD
system.(6 marks)
(d) A
parallel program is to be executed on aMIMD
computerwith
100 processors.However, 3Vo
of all
instructions during program execution must be carried out sequentially, but the rest can be executed inall
processors inparallel.
What is the speedup of this progmm on this computer?(4 marks)
(b) Derive
.the speed up-{or
the.pipelined execution of a vector
processorfor
processing a vector
of
length'n'.
The numberof
sub operations on each vector element is 's' and'i'
is thetime(in
numberof
units of cycletime)
taken to set up a loop.(8 marks)
72
...3t-
3.
3-
(a) What is
meantby
data dependencyin
programs?dependency? State them in a formal form.
tcsA40ll
What
are the typesof
data (8 marks)(4 marks)
how the
user (8 marks)(b)
Carry out thefollowing
tasks for the program segment below:(i)
Determine all of the data dependencieswith
directions.(ii)
Determine all of the dependencies that must be synchronized.(iii)
Parallelize the segment fcrr anMIMD
system. Attempt to achieve ma:rimum parallelism.A
:= B+CFORI=2TON D(I)=A*E(I) S=E(I)*10 T=T+S
NEXT I A=D(N)-5
(8 marks)
(c)
Explain,with
examples, the useof 'FORK'and'JOIN'in
parallel programming.(4 marks)
4. (a) Multiple
processes wish to access a shared memory area, somejust
reading and otherswriting. While
a numberof
processes can readfrom
a shared memoryblock
simultaneously,only
one process at atime
may be allowedwrite
access.During the
write-accessno other
processcan be allowed to read from
the memoryarea.
Present a solutionwhich allows
maximum possible parallelism.Take cale to avoid
'starvation'of
thewrite process.
(g marks)
(b)
Explain,with
simple examples, the constructs available in CSP language.(c) Write an 'alarm
ptocess'in CSP
language andexplain
asto
processeswill
useit.
73
...4t-
tcsA40u
-4-
5. (a)
Discuss the hypercube interconnection topology.- oooOooo -
(b)
Show that mesh topology can be embedded in hypercube topology.(6 marks)
(c) Develop a two-way
mergesort algorithm for a
mesh connected computer.Illustrate
the executionof
thealgorithm by
meansof
an exampledrawing
the mesh rows and columns.(6 marks)
(8 marks)
41 (q