The service() method is not threadsafe. Only one instance of a
servlet is created. For each request, a new
thread is spawned.
My question:
If some code is written in the service class which updates a database table, and different clients access the servlet at the same time (in effect, the service() method) then how is database consistency handled?