
1/2
UniversityofPittsburgh
DepartmentofComputerScience
CS/COE1541–Intro.toComputerArchitecture
Assignment#4(DueonWednesdayApril15)
NOTE:Thisassignmentshouldbedonebyyourself.Nolatesubmissionisaccepted.
1.[50](Amdahl’sLaw)Yourprogramcanbedecomposedintoa“serial”sectionanda“parallel”section.Theserial
section’sportionintheprogramiss(s<=1)andtheparallelsection’sportionisp(p<=1).Notethats+p=1.Assume
thattheparallelsectioncanberunbyanarbitrarynumberofprocessors,sayNprocessors,andyieldsa
commensuratespeedupofN.
(a)[30]WhatistheoverallspeeduponewouldgetfromtheprogramifN=8?
(b)[20]Plotagraphshowingtherelationshipbetweenp(sameas(1–s)),N,andspeedup.TheXaxisisthevalueof
p.Therangetoshowis0to1.TheYaxisistheoverallprogramspeedupyouwillget.Employ4lineseach
representingN=1,N=2,N=4,andN=8.
2.[30]Discussthedifferencesbetweenthesharedmemoryprogrammingmodelandthemessagepassing
programmingmodel.Chooseonemodelforyourselfandexplainwhyyoupreferthemodelovertheother.
3.[20]Wehaveaharddiskdrive.Someofthemostimportanttechnicalfeaturesofthisharddiskdriveare:
7,200RPMrotatio nspeed,200GBcapacity,andmaximum100MB/stransferratetothehostcomputer.
Thetimetogetdatafromthisharddisktothehostcomputer’smainmemoryisgivenasfollows:
TIME=controlleroverhead+seektime+rotationaldelay+readtime+transfertime
(a)[5]Describetheimpactofimprovingtherotationspeedto14,400RPMonTIME.
(b)[5]Describetheimpactofimprovingtherecordingdensity(bits/inch)onTIME.
(c)[5]Describetheimpactoffinertrackpitch(i.e.,shortertracktotrackdistance)onTIME.
(d)[5]Describetheimpactofstripingdataovermultiplesurfaces(assumingwehavemultipleplatters)withinthis
harddiskdriveonTIME.