what is the advantage of using Servlets over CGI programming?
Answer Posted / mdsha_asiya
The problem with CGI script is that your server must
restart the CGI script every time a new request is
issued.This means every time a client communicates,your
server needs to begin a new proccess .starting and stopping
processes are expensive operions.
The difference between servlet and CGI scritpt is that CGI
script must be restarted every request where as servlets
are pooled and reused over and over again to service many
requests.This means you don't have to restart a process
every time client request comes over the network.
After servlet is loaded,to handle client request it simply
creates a thread and runs service() of servlet.
servlets are more efficient,powerful,portable,inexpensive
and convinent.
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What is servlet in web technology?
What are the different methods of session management in servlets?
What are the functions of an intercepting filter?
What are the different methods involved in generic servlet?
What's the difference between authentication and authorization?
What are some disadvantages of storing session state in cookies?
What's the difference between servlets and applets?
What is the difference between Server and Container?
Explain how does JSP handle run-time exceptions?
Why servlet is mostly used?
How servlets are deployed in java?
What is the process for chaining servlet?
What is servlet attributes and their scope?
What do you mean by session tracking?
How do you deal property files in servlet?