Servlets

There are two types of Server Side Web Technologies

  • Process Based (CGI)
  • Thread Based(Servlets,Jsp,asp.net)
Operating System Controlles the process but threads can be controlled through java programing using JRE Support,Transform controlle between two process or two threads is called Context Switching
Context Switching on Process takes More time when compare to the context switching on Threads

When ever End user sends a request to the web application for every request it will create one seperate process,the switching between the process is takes more time ,it leads to performance degration,so CGI is a non-scalable web application

The application gives good performance irrespective of increasing or decreasing the requests is called scalable

              Every Servlet programe is a Single instance and multiple thread component,i.e when multiple requests is given to the servlet programe the servlet container creates only one object for that servlet programe class but multiple threads will be started on that object representing multiple request as shown in the above diagrame
           
              Servlet is a java based server side technology to create a Dynamic web resource programes of java web application having capability to generate web pages

Different ways to create a Servlet Programme

No comments:

Post a Comment