InterviewSolution
| 1. |
Whats The Advantages Using Servlets Over Using Cgi? |
|
Answer» CGI programs run outside the webserver. So a new process must be STARTED to execute a CGI program. CGI programs are DESIGNED to handle a single request at a time. After that they return the result to the web server and EXIT. On the other hand servlets can handle MULTIPLE requests concurrently. They run WITHIN web servers. They generate dynamic content that is easier to write and faster to run. CGI programs run outside the webserver. So a new process must be started to execute a CGI program. CGI programs are designed to handle a single request at a time. After that they return the result to the web server and exit. On the other hand servlets can handle multiple requests concurrently. They run within web servers. They generate dynamic content that is easier to write and faster to run. |
|