https://github.com/iluwatar/java-design-patterns-web/issues/8 Update pattern categories and tags
This commit is contained in:
@ -3,11 +3,9 @@ layout: pattern
|
||||
title: Thread Local Storage
|
||||
folder: tls
|
||||
permalink: /patterns/tls/
|
||||
pumlid:
|
||||
categories: Concurrency
|
||||
categories: Idiom
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Intermediate
|
||||
- Performance
|
||||
---
|
||||
|
||||
## Intent
|
||||
@ -19,5 +17,5 @@ Securing variables global to a thread against being spoiled by other threads. Th
|
||||
## Applicability
|
||||
Use the Thread Local Storage in any of the following situations
|
||||
|
||||
* when you use class variables in your Callable / Runnable object that are not read-only and you use the same Callable instance in more than one thread running in parallel.
|
||||
* when you use static variables in your Callable / Runnable object that are not read-only and more than one instances of the Callable / Runnable may run in parallel threads.
|
||||
* When you use class variables in your Callable / Runnable object that are not read-only and you use the same Callable instance in more than one thread running in parallel.
|
||||
* When you use static variables in your Callable / Runnable object that are not read-only and more than one instances of the Callable / Runnable may run in parallel threads.
|
||||
|
Reference in New Issue
Block a user