What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / niranjanravi
Single Thread Model ensures that servlet handles only one
request at a time.When YOUR CLASS IMPLEMENTS THIS INTERFACE
WE ARE GUARENTEED THAT no two threads run simultaneously in
service() method.
this is a marker interface which contains no methods on its
own.
| Is This Answer Correct ? | 53 Yes | 3 No |
Post New Answer View All Answers
Why jsp is better than servlet?
Can we get PrintWriter and ServletOutputStream both in a servlet?
Name the packages that work with servlet?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
how the HTML data stored in web server?
What are the different mode that servlets can be used?
Define context initialization parameters.
What are different ways for authentication of servlet?
What is servlet and its use?
What is the procedure for initializing a servlet?
Can we use threads in Servlets?
How to notify an object in session when session is invalidated or timed-out?
Which method is called when reference variable is passed in system.net?
What is servlet instance?
Explain the difference between a web server and a web container?