We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94d6991 commit 36c07fcCopy full SHA for 36c07fc
contents/when-and-how-should-i-use-a-threadlocal-variable.md
@@ -1,4 +1,4 @@
1
-## 该什么使用 ThreadLocal变量,它是如何工作的?
+## 该什么时候使用 ThreadLocal变量,它是如何工作的?
2
### 回答1
3
一种可能的(也是常见的)使用情形是你不想通过同步方式(synchronized)访问非线程安全的对象(说的就是SimpleDateFormat),而是想给每个线程一个对象实例的时候。
4
例如
0 commit comments