Skip to content

Commit d5996fb

Browse files
authored
Update p06_storing_thread_specific_state.rst
贡献->共享
1 parent a431f97 commit d5996fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c12/p06_storing_thread_specific_state.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
----------
7878
在大部分程序中创建和操作线程特定状态并不会有什么问题。
7979
不过,当出了问题的时候,通常是因为某个对象被多个线程使用到,用来操作一些专用的系统资源,
80-
比如一个套接字或文件。你不能让所有线程贡献一个单独对象
80+
比如一个套接字或文件。你不能让所有线程共享一个单独对象
8181
因为多个线程同时读和写的时候会产生混乱。
8282
本地线程存储通过让这些资源只能在被使用的线程中可见来解决这个问题。
8383

0 commit comments

Comments
 (0)