How can session variables be made thread-safe?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
How can session variables be made thread-safe?
Rating:
Session variables are not thread-safe. This is because there can be multiple requests from a client using more than one browser. These variables can be made thread-safe by synchronizing them, i.e., by acquiring a lock on the part of code that accesses these variables.
Rating:
Was this information helpful?
Other articles
- What is the GenericServlet class?
- What is the getRequestDispatcher() method?
- What are the methods of the Tag interface?
- What is a Service Locator?
- What is the SimpleTagSupport class?
