Is Servlet Class Thread safe?????? How to make servlet
Thread safe ???
Answer Posted / santhosh kandula
Yes, Servlet is thread safe, because the process of
servlet is request and response. whenever the request comes
then the server can respond. suppose at a time there more
request are came to the server in that which request is the
server can respond, in that time threads will be created
and based on priority of the thread response will be given
for the request.
So, servlets are thread safe.By using thread
properties we make the servlet Thread safe.
| Is This Answer Correct ? | 2 Yes | 23 No |
Post New Answer View All Answers
What is a servlet-to-servlet communcation?
How would you create deadlock on your servlet?
Write a program to show the functionality of doget and dopost method?
Explain the difference between jsp and servlet?
How to create war file?
If servlet receives multiple requests, how many objects will it create?
What is meant by session? Tell me something about httpsession class?
How do you deal property files in servlet?
Define the lifecycle for executing a jsp page.
What is a servlet context object?
How the typical servlet code look like ?
Can a jsp be called using a servlet?
What are the different methods of session management in servlets?
Explain how to improve Servlet Performance?
What do you mean by cgi and what are its drawbacks?