Skip to content

Commit e210e4e

Browse files
authored
Add files via upload
1 parent fb98da8 commit e210e4e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tls/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
![alt text](./etc/tls.png "Thread Local Storage")
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

Comments
 (0)