You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Securing variables global to a thread, i.e. class variables of the Runnable object,
15
-
against being spoiled by other threads using the same instance of the Runnable object
14
+
Securing variables global to a thread, i.e. class variables if a Callable object,
15
+
against being spoiled by other threads using the same instance of the Callable object
16
16
17
17

18
18
19
19
## Applicability
20
20
Use the Thread Local Storage in any of the following situations
21
21
22
-
* when you use class variables in your Runnable Object that are not read-only
22
+
* when you use class variables in your Callable Object that are not read-only and you use the same Callable instance in more than one thread running in parallel
23
+
* when you use static variables in your Callable Object that are not read-only and more than one instances of the Callable may run in parallel threads.
0 commit comments