What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / rajesh r
Hi
The SingleThreadedModel has been deprecated from Servlet
specification due to a performace hit.
Please donot use this in future use Synchronized block if
you really need to protect your Attributes from cuncurrent
access.
Thanks
Rajesh
rajeshr1988@gmail.com
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What are Servlets?
What is servletconfig?
What is http servlet in java?
Why do we have servlet wrapper classes?
What is getservletcontext?
How to notify an object in session when session is invalidated or timed-out?
What are the advantages of cookies?
What is the difference between Server and Container?
Explain the servlet filter.
What is a deployment descriptor?
How can you create a session in servlet?
If servlet receives multiple requests, how many objects will it create?
Explain web application directory arrangement?
Whether thread can be used in servlets?
What is the GenericServlet class?