Hi,
I am confused with this part.
On page 202, the first dumb Q&A explained it.
but this is what I am thinking:
Multiple clients make multiple requests. Each request is allocated the same
servlet but a different
thread. Each thread basically is a different servlet "object" from the same servlet class. Since they are different servlet objects, the multiple requests modify the instance variables of the allocated object to itself. They don't access the servlet object allocated to other requests. Then how can the instance variables are non-thread safe?
Anyone can clarify it?
Thank you.