资源描述:
《08春sa试题-业余班.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、试题:软件体系结构班号:姓名:一.Brieflyanswerthequestionsbelow(简单回答问题)(共:20分,每题4分).1.ConsidertheComputationalDrugDiscovery'sprojectinOxfordUniversity.ThisprojectutilizesmorethanonemillionPCstolookforacancercure.Theprojecteventuallywillanalyze3.5billionmoleculesforcancer-fightingpot
2、ential.Morethan50,000yearsofCPUpower(basedona1.5gigahertzchip)havebeenputtoworksofar.Now,ifyouarethedesignerofthissoftwaresystemtoallowsuchahugenumberofPC’stoparticipantinthejointeffortcomputing.考虑牛津大学的计算药物发现的项目。这个项目运用超过一百万台个人计算机寻找癌症治疗方案。项目最终将分析35亿个具有抗癌潜力的分子。超过50,000
3、年CPU能力(根据一块1.5千兆赫芯片)到目前为止被投入运算。现在,如果您是这个允许如此多的PC参与计算的软件系统的设计师。a)Whatsoftwarearchitectureyouwouldliketouse?Gridcomputing,clustercomputingorP2Parchitecture?那种软件体系结构你将使用?网格计算?还是P2P?b)Whatisthereasonforyoutousethisarchitecture?你选择这种体系结构的原因是什么?第9页(共9页)试题:软件体系结构班号:姓名:2.Spe
4、cifytheadvantagesanddisadvantagesofpipes-and-filtersarchitecture具体指出管道式过滤器软件体系结构的优点和缺点3.Object-orientedsoftwarearchitecturehaseliminatedsharedmemoryspace.Whatthismeans?Explainit.面向对象软件体系取消共享存储空间.这是什么意思?解释一下4.Pointoutthreetypicalapplicationsofthelayeredarchitecture.指出
5、层次软件体系结构的三个典型应用a)Application1b)Application2c)Application3第9页(共9页)试题:软件体系结构班号:姓名:2.Inthefollowingsituations,whatissuitableforusingbatchsequentialsoftwarearchitecture?在下列两种情形,哪种适合使用顺序批处理体系结构?a)Abankingsystemforbusinesstransactionsforabank,whichrequiresthatdatashouldbep
6、rocessedassoonasdatacome(real-time),forexample,deposit,withdraw,andcreditcardspending,thedatabaseshouldbeupdatedimmediatelyaftereachtransactions,一个需要适时操作的银行业务系统b)Forapopulationstatisticsystem,whichrequiresthatdatawillbecollectedperiodically,andthedatabaseshouldbeupda
7、tedateachweekendafterthedatahasbeenprocessedoutsidethedatabasebyusingaprogram.一个需要周期性更新的人口普查系统第9页(共9页)试题:软件体系结构班号:姓名:二.SomeDesignProblemsbyUsingDesignPatterns(Total:20分,每题10分)使用设计模式的设计问题1.Ifagameprogramisdesignedasthefollowing,wheretheclassesP1,P2,P3,P4,P5,andP6repre
8、sentdifferentpersonobjectsinagame.Eachperson’sactionwillcauseallotherpeople’saction.Theproblemisthattherearetoomanyinteractionsamon