CGI v/s Servlet

  • CGI(Common Gateway Interface) Web Server, based on perl scripting.

  • Process based framework, in which a process is spawned, rather than a thread.

CGI v/s Servlets
  • Once the response is served the process that generated the response is killed.

  • Process is heavy weight and cannot be reused, hence slow.

Last updated