We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb98da8 commit e210e4eCopy full SHA for e210e4e
1 file changed
tls/README.md
@@ -0,0 +1,22 @@
1
+---
2
+layout: pattern
3
+title: Thread Local Storage
4
+folder: tls
5
+permalink: /patterns/tls/
6
+pumlid: 5Sd13OGm30NHLg00uZlTc62HeCI9x6-s_ONJF6dMghd5AM5jAS3qdSZubwwA4aUuM1uAKQGyEg6CpZxSwUQ7jrEyNhfD1iJKwNql2Cr9aB-ci9vczFO7
7
+categories: Concurrency
8
+tags:
9
+ - Java
10
+ - Difficulty-Intermediate
11
12
+
13
+## Intent
14
+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
16
17
+
18
19
+## Applicability
20
+Use the Thread Local Storage in any of the following situations
21
22
+* when you use class variables in your Runnable Object that are not read-only
0 commit comments