Skip to content

Commit

Permalink
Update 4.多线程.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fyhhub authored Nov 12, 2023
1 parent bbb02d4 commit 4024bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust-learn/4.多线程.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fn main() {
**创建一个线程大概需要 0.24 毫秒,随着线程的变多,这个值会变得更大,所以线程不要创建太多**


## 、线程屏障
## 、线程屏障

可以使用 Barrier 让多个线程都执行到某个点后,才继续一起往后执行:

Expand Down

0 comments on commit 4024bbe

Please sign in to comment.