Which ones of the following are thread-safe ( with my tempted answers )? Please kindly correct me with reasons. 1. local variable: yes 2. instance variable: no 3. class variable: no 4. request attribute: no 5. session attribute: yes 6. context aattribute: no
posted 14 years ago
In my quest for knowledge I think - If you implement SingleThreadModel then class variable would be thread safe (but not instance variable).