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
How can the session in servlet can be destroyed?
What do you mean by scope object and what are its types?
What is servlet attributes and their scope?
What do you mean by session tracking and also explain its techniques?
What's the difference between servlets and applets?
Why do we have servlet wrapper classes?
What do you mean by cgi in servlet?
Can you send an authentication error from a servlet?
What’s the use of the servlet wrapper classes??
How native code can be used in a servlet?
What is the difference between the servlets and cgi programs?
Why servlet is used as controller ? Not JSP? I want complete explation?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
How can we implement a jsp page?
What is http servlet?