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
How are filters?
What is servlet and its advantages?
What are life cycle methods of a servlet?
What is the directory structure of a war file?
Why don't we write a constructor in a servlet?
What are the kinds of http requests?
How to generate the server side programming and the advantages of it over the other languages?
What are the functions of an intercepting filter?
How forward () method is different from send redirect () method?
What do you mean by chaining in servlet?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What is the process to implement doget and dopost methods?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
How do you communicate in between Applets and Servlets?
What is the use of servlet wrapper classes?