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
Explain the war file?
What is the purpose of requestdispatcher interface?
What is difference between jsp and servlet?
How do you deal property files in servlet?
Why servlet is faster than jsp?
Why servlet is used as controller ? Not JSP? I want complete explation?
Explain the steps involved in placing a servlet within a package?
What's the servlet interface?
How do you find out what client machine is making a request to your servlet
What is string tokenizer?
What do you mean by servlet context?
What are the different mode that servlets can be used?
Which HTTP method is non-idempotent?
What’s the use of the servlet wrapper classes??
Explain the difference between generic servlet and http servlet?