Are Servlets by default thread safe or not?
thanks in advance
regards
Sudhakar
Answers were Sorted based on User's Feedback
No.
By default Servlets are not thread safe...Bcoz Servlet is
concept of Single instance multiple threads concept.
Multiple thread are acting on single object means its not
thread safe....
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / nilofar
no by default servlets are not threads safe .oly particular
lines of service method can be synchronised to make it
thread safe
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / naresh
Yes By Default Servlets Are ThreadSafe.....
If you use Insatance VAriables then only Servlets is having Thread Related Problems
Thats way dont recommended to use Instance VAriables in servlets...Its DAnagerous
| Is This Answer Correct ? | 1 Yes | 1 No |
What is servlet in tomcat?
How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method?
Why is Servlet so popular?
What is use of parseQueryString ?
What is the difference between context parameter and context attribute?
What are the different session tracking techniques?
What happens, if server sends a cookie to a browser that doesn't supports cookies?
What are the new features added to servlet 2.5?
what is SSL?
How to create war file?
What do you mean by servlet?
How will you pass values from HTML page to the servlet?