when the several requests comes to server..how it manage
the requests
Answer Posted / 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 |
Post New Answer View All Answers
What are the different methods involved in generic servlet?
What are the life-cycle methods for a servlet?
How can you create a session in servlet?
What is the life cycle of a servlet?
What is http servlet? Explain with the help of an example.
Explain the difference between servletconfig and servletcontext in servlet?
How to get the current httpsession object?
What is servlet and its use?
What are the common methods that are included in the http servlet class?
Should I override the service() method?
What is servlet collaboration?
What are the types of an http request?
Describe in brief RequestDespatcher?
Which method of the httpservletrequest object is used?
What is the difference between the servlets and cgi programs?