Skip to content

Commit

Permalink
Merge pull request #277 from keyvangholami/main
Browse files Browse the repository at this point in the history
Update 3.2-goroutine.md
  • Loading branch information
Ja7ad authored Aug 15, 2023
2 parents 3ed21df + a613354 commit 9048388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/chapter 3/3.2-goroutine.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Finished
virtual_cores = x*number_of_physical_cores
```

در بالا x هست تعداد threads به ازای هر هسته CPU
در کد بالا x برابر است با تعداد thread ها به ازای هر هسته از CPU

در گو ما یک تابع به نام NumCPU داخل پکیج runtime داریم که می توانید تعداد logical Proccessors موجود برای برنامه گو را ببینید.

Expand Down

0 comments on commit 9048388

Please sign in to comment.