Answer Posted / pinku pattanaik
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why session tracking is needed?
What is session?
what is servlet chaining?
What is pure servlet?
What is the need of servlet filters?
What if you need to span your transaction across multiple servlet invocations?
Can we use threads in Servlets?
How can we upload the file to the server using servlet?
Is servlet a framework?
How can a servlet be used to generate plain text instead of html?
How to rectify errors in java servlet while compilation?
Which is the methods of generated servlet?
What is servlet invoker?
How to get the path of servlet in the server?
Explain url encoding in servlet?