Suppose that Myservlet implements SingleThreadModel.
and there are
Which among these variables would be thread safe A Local and Request Variables B Local,Instance and request variables C Local,Instance,request,class variables D None of these please help me.....i heard that STM is not safe. According to that statement My Choice is 'D' is it correct.... Regards. T.Vijay Ganesh
posted 8 years ago
please help me.....i heard that STM is not safe. According to that statement My Choice is 'D' is it correct....
i am afraid you have choosen the wrong option..!!
Usually Request and Local varibales are always atleast in most cases are Thread safe and since you are using STM, the instance variables will also be Thread safe.
But in any case the session, Context and Class variables are NOT Thread safe.