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 is servlet lazy loading?
Explain the methods of request dispatcher in servlet?
What is Client-Server Computing?
Should I override the service() method?
What is getservletcontext?
What is lazy loading and what is Generic Servlet Class?
What do you mean by web applications?
What is SingleThreadModel interface?
How to generate the server side programming and the advantages of it over the other languages?
Explain the servlet context.
What is servlet instance?
What is generic servlet class?
What is the use of httpservletresponsewrapper?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
Is tomcat a servlet container?