码迷,mamicode.com
首页 > Web开发 > 详细

Servlet/JSP and CGI.

时间:2014-07-22 09:06:07      阅读:330      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   http   os   strong   

  CGI has maybe the worst lift cycle possible.As designed, each request to a CGI resource creates a new process on the server and passes information to the process via standard input and environment variables.bubuko.com,布布扣

  Even with poor performance by today’s standards, CGI was a revolutionary step in the evolution of server-side programming. Developers had across platform method of creating dynamic content using most any of theirfavorite scripting and programming languages. Figure 1-2 shows the improved implementation of CGI. Instead of one requestper a process, a pool of processes is kept that continuously handle requests. Ifone process finishes handling a request, it is kept and used to manage the nextincoming request rather than start a new process for each request.bubuko.com,布布扣

  This same pooling design can still be found in many of today’s CGI imple-mentations. Using pooling techniques, CGI is a viable solution for creatingdynamic content with a Web server, but it is still not without problems. Mostnotable is the difficulty in sharing resources such as a common logging utility orserver-side object between different requests. Solving these problems involvesusing creative fixes that work with the specific CGI and are custom-made forindividual projects. For serious Web applications, a better solution, preferablyone that addresses the problems of CGI, was required.

Servlet/JSP and CGI.,布布扣,bubuko.com

Servlet/JSP and CGI.

标签:des   style   blog   http   os   strong   

原文地址:http://www.cnblogs.com/listened/p/3855985.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!