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 servletconfig?
What are the life cycle methods of the servlet?
What are the functions of the servlet container?
What do you mean by session tracking?
What is the capacity the doget can send to the server?
Explain servlet.
What are some advantages of storing session state in cookies?
When should you prefer to use doget() over dopost()?
What do you mean by url pattern in servlet?
What are the advantages of Servlet over CGI?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
How to rectify errors in java servlet while compilation?
What is the difference between 2 types of servlets?
What is the servlet?
What is servlet? Explain