How do I ensure that my servlet is thread-safe?
Answers
Answered by
0
Servlet containers usually manage concurrent requests by creating a new Java thread for each request. ... Servlet is not thread-safe by itself. You can make it thread-safe by making the service method synchronized. you need to implement SingleThreadInterface to make it thread-safe.
Similar questions