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
When Servlet is unloaded?
What is Request Dispatcher?
Explain the role of dispatcherservlet and contextloaderlistener.
What are the two important api's in for servlets?
Why session tracking is needed?
What is cgi and what are its drawbacks?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
What are the servlet events?
What is the dispatcher servlet?
How we can get ip address of client in servlet?
Can a jsp be called using a servlet?
How do cookies work in servlets?
What's the servlet interface?
What is httpservlet class?
What is http servlet in java?