Java Server Page

JSP Projects

JSP Project

adplus-dvertising
What is mean by Common Gateway Interface( CGI)
Previous Home Next

The Common Gateway Interface( CGI) is the first practical techniques for creating dynamic content, even though CGI program is written in language—most commonly C, C++, Perl, and Python. With the help of CGI, web server pass certain request to external program or to client in the form of static file. CGI programs has ability to create the dynamic web page and defines standards method for an information server to talk with external application/ client request.

When any of server receives a request that accesses a CGI program, it must create a new process( called child process) to run the CGI program and pass to it, via adding standard input and environment variables, every bit of information that might be necessary to generate a response. Although creating a new process for every such request requires time and significant server resources, which limits the number of requests a server can handle concurrently that is major drawback of CGI system .

Figure-3: Show the working model of Common Gateway Interface( CGI) system.

Since the CGI system is provided the dynamic content on the web, but several factor makes its inefficient like:

  • CGI programs typically use a large amount of system resources like large amount of memory and CPU usage.
  • CGI pages are often not readily portable to other platforms.
  • CGI System can't handles multiple request from the clients.
  • For each request sent by client to a CGI program, the Web server loads, runs, and unloads the entire CGI.
Previous Home Next