1 / 6
文档名称:

数据库系统概念第六版-课后答案9s.pdf

格式:pdf   大小:490KB   页数:6页
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

数据库系统概念第六版-课后答案9s.pdf

上传人:1243595614 2016/11/29 文件大小:490 KB

下载得到文件列表

数据库系统概念第六版-课后答案9s.pdf

文档介绍

文档介绍:CHAPTER9Application Design andDevelopmentPractice is the main reason why servlets give better performancethan pro-grams that use mon gateway interface (CGI), even though Javaprograms generally run slower than C or C++ programs?Answer:TheCGIinterface starts a new process to service each request,which has a signi?cant operating system overhead. On the other hand,servelets are run as threads of an existing process, avoiding this , the process running threads could be the Web serverprocess it-self, avoiding munication which can be expensive. Thus,for small to moderate sized tasks, the overhead of Java is less than theoverheads saved by avoiding process creating tasks involvinga lot of CPUactivity, this may not be the case, andusingCGI with a C or C++ programmay give better some bene?ts and drawbacks of connectionless protocols over proto-cols that maintain :puters have limits on the number of simultaneousconnections they can accept. With connectionless protocols, connectionsare broken as soon as the request is satis?ed, and therefore other clientscan open connections. Thus more clients can be served at the same request can be routed to any one of a number of different servers tobalance load, and if a server crashes another can take over without theclient noticing any drawback of