Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

1040


What are the different methods involved in the process of session management in servlets?

1271


Is dispatcher servlet a singleton?

1021


What is java servlet?

1057


What do you mean by mime type?

979


What are different Authentication options available in Servlets.

1073


What methods do you use in servlet - applet communication?

1044


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

1063


What are the life-cycle methods for a servlet?

1000


Can we use threads in Servlets?

1145


Whether thread can be used in servlets?

1210


Is java servlet still used?

1056


Is it possible to have a constructor inside the servlet?

1016


How we can call a jsp from the servlet?

1011


What are the kinds of http requests?

1039