Skip to content

Commit 426cf78

Browse files
authored
Update p1-syncmutex.md
1 parent 3a781e1 commit 426cf78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lec12/p1-syncmutex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ https://www.zhihu.com/question/23281499/answer/24112589
775775
- value= 100;
776776
- Thread1: value - 50; //成功 value=50
777777
- Thread2: value - 50; //阻塞
778-
- Thread3: value + 50; //成功 value=50
778+
- Thread3: value + 50; //成功 value=100
779779
- Thread2: 重试成功
780780
- 解决思路:加上版本号(时间戳)
781781
- (100,1); (50,2); (100,3)

0 commit comments

Comments
 (0)