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

What is the major difference between servlet and applet?

954


What are the ways to handle multi-threading in servlets?

1035


Can you use javascript in servlets?

1031


How do you find out what client machine is making a request to your servlet

1023


Why do we have servlet listeners?

1031


what do you understand by url rewriting?

908


What is meant by a web application

976


What do you mean by url pattern in servlet?

1079


How can we include static files in the jsp page?

1027


Why are http servlets used in programming?

970


How we can create war file in servlet?

1080


What is difference between server and servlet?

1041


Which interface must be implemented by all servlets?

1300


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3350


Which protocol will be used by browser and servlet to communicate

1010