Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the advantages of Servlet over CGI?

advantages CGI servlet
0
Posted

What are the advantages of Servlet over CGI?

0

Servlets have several advantages over CGI: • A Servlet does not run in a separate process. This removes the overhead of creating a new process for each request. • A Servlet stays in memory between requests. A CGI program (and probably also an extensive runtime system or interpreter) needs to be loaded and started for each CGI request. • There is only a single instance which answers all requests concurrently. This saves memory and allows a Servlet to easily manage persistent data.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123