Skip to content

CatalinBinzari/medium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

source: https://medium.com/@ninucium/parallelism-and-concurrency-in-go-how-it-works-in-real-computing-systems-part-1-a680443ad8bd

In Go, you can explicitly specify how many processors a program will use. This number is set using the runtime.GOMAXPROCS(n) function from the runtime package, where n is the number of processors to be used.

By default, the value of runtime.GOMAXPROCS is set to the number of available processors on the machine where the program is executed.

usage:
1. execute
2. go tool trace trace.out
3. go to http://127.0.0.1:62289/trace
4. 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages