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 449fc16 commit bbb02d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rust-learn/4.多线程.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ fn main() {

调用 `handle.join().unwrap()`, 可以等待handle对应的子线程结束后执行。

## 、创建线程的性能
## 、创建线程的性能

**创建一个线程大概需要 0.24 毫秒,随着线程的变多,这个值会变得更大**
**创建一个线程大概需要 0.24 毫秒,随着线程的变多,这个值会变得更大,所以线程不要创建太多**


## 四、线程屏障
Expand Down

0 comments on commit bbb02d4

Please sign in to comment.