Differences between Servlet and CGI
Servlet |
CGI |
In Servlets each request is handled by lightweight Java Thread(Multi threaded) |
In CGI each request is
handled by heavy weight OS process. |
Servlets
are Platform Independent. |
CGI
is not Platform Independent. |
Servlets
are portable. |
CGI
is not portable. |
Servlets
can link directly to the Web server |
CGI
cannot directly link to Web server. |
Servlets
can handle cookies |
CGI
cannot handle cookies |
Servlets
can track sessions |
CGI
cannot track sessions |
Servlets are inexpensive than CGI |
CGI is more expensive than Servlets |
Servlets are more secure
than CGI |
CGI programs can be more
vulnerable to attacks than Servlets |
No comments:
Post a Comment