CGI(Commmon Gateway Interface)
|
CGI technology enables the web server to call an external program and pass HTTP request information to the external program to process the request. For each request, it starts a new process. |
Disadvantages of CGI
There are many problems in CGI technology:
-
- If number of clients increases, it takes more time for sending response.
- For each request, it starts a process and Web server is limited to start processes.
- It uses platform dependent language e.g. C, C++, perl.
Advantage of Servlet
|
There are many advantages of Servlet over CGI. The web container creates threads for handling the multiple requests to the servlet. Threads have a lot of benefits over the Processes such as they share a common memory area, lighweight, cost of communication between the threads are low. The basic benefits of servlet are as follows:
|