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
What is called Scriptlet?
What is dispatcher servlet?
Explain is servlet mapping?
Explain url encoding?
What do you mean by servlet context?
What do you mean by session tracking and also explain its techniques?
What is the need of servlet filters?
If a servlet is not properly initialized, what exception may be thrown?
What is the difference between get and post methods?
What is the process to implement doget and dopost methods?
What are the types of protocols supported by httpservlet ?
How to get the current httpsession object?
Define the servlet mapping.
What are the phases of servlet life cycle?
When should you prefer to use doget() over dopost()?