I am writing a program using servlets, however do not completely understand the
issues which I may run into concerning multi thread. So, a couple of question:
public class DDPanes extends HttpServlet
Given the following:
First user -
1st call to doget - sets classvarA = 1; sets classvarB = 2;
2nd call to doget - sets nothing; prints classvarA, classvarB
* will classvarA, classvarB still be equal to the values set in the first call?
* If a second user accesses this servlet GUI from another PC while the first user is pe rforming 1st test.
Are the class variables shared between sessions, so that the second user will see the values set
by the first user.....or are the class variables different instance by session?
* What if I implement single threaded model?