when the several requests comes to server..how it manage
the requests
Answers were Sorted based on User's Feedback
Answer / goutham
When several requests comes to the server,I am assuming here
the requests coming to the same servlet,then the
webcontainer sees whether the Servlet is instantiated if it
is not the servlet is instantiated (only for the first time)
then a thread is spawned for each request and assigned to it.
*servlets does not implement singlethreadmodel , this
interface is depricated and hits the performance very
badly..instead of singlethreadmodel you can use sychronized
blocks(not methods)
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / suresh mediboyina
When the request comes to IIS server,it can identify the
file extension by http handlers and send to Http modules
which can be processing the request send to http handlers,
this can send to browsers.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / malligontla
As the servlet is a single thread model, then the requests
will be served one by one. That’s the internal process by
the web container.
| Is This Answer Correct ? | 6 Yes | 3 No |
Answer / siva thimmannagari
i think its only servlet and instance and multiple thread..
| Is This Answer Correct ? | 1 Yes | 1 No |
Why the container loads server at the application startup and how?
List the Different types of servlet?
Explain the difference between generic servlet and http servlet?
What is the difference between 2 types of servlets?
What are the steps that are involved in using the httpservlet class?
Write the code to get the server information in servlet.
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
How to get the current httpsession object?
What is servlet attributes and their scope?
What is the difference between context parameter and context attribute?
What is Single Threaded Model in Servlets? Explain this with an example?
Directive Include and Action Include how both are working in JSP, what is the difference between both?In which suituation we have to choose these elements?