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 the process to implement doget and dopost methods?
What's the advantages using servlets than using cgi?
What are the key methods that are involved in processing of http servlets?
What are the types of servlet?
What is called servlet container?
Explain jsessionid and when is it created?
What are important features of Servlet 3?
What is http servlet? Explain with the help of an example.
Explain the different ways for servlet authentication?
What is the difference between servlet and filter?
What are the annotations used in servlet 3?
What is the inter-servlet communication?
What are different methods of session management in servlets?
What are the two important api's in for servlets?
What are the steps involved in placing a servlet within a package?