Answer Posted / chandra kunchala
CGI:- COMMON GATEWAY INTERFACE.
CGI programs ate process based.
when ever we are sending a reqeust a separate process will
create. for each and every request it will create separete
process. so with respect to memory point of view we 've
loss lot of memory. but in the case of servlets, servlets
are thread based, and it will create onle request and
response objects only, so at the momory point of view this
will not effect.
The major advantage of CGI over servlets is, there is no
data-in-constitency problem as because for each and every
requet it will create process in separate memory so, all
process are independent to each other. But in the case of
servlets thrads are creating in the shared memory, so, there
may be chance of getting data-in-consistency problem..
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between Server and Container?
What is the difference between get and post methods?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
If some new data has entered the database, explain how can a servlet refresh automatically?
Explain how to improve Servlet Performance?
What is difference between jsp and servlet?
What is the use of httpservletrequestwrapper?
Explain how does JSP handle run-time exceptions?
What is the importance of init() method in Servlet ?
What do you mean by url pattern in servlet?
How will two or three servlets interact or communicate with each other?
What is the servletconfig object?
What is called Session Tracking?
What is the difference between the include() and forward() methods?
What is the use of attribute in servlets?