File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ static int32 debug = 0;
2020// OS thread, so that all ready gs can run simultaneously, up to a limit.
2121// For now, ms never go away.
2222//
23- // The default maximum number of ms is one: go runs single-threaded.
24- // This is because some locking details have to be worked ou
25- // (select in particular is not locked properly) and because the low-level
26- // code hasn't been written yet for OS X. Setting the environmen
27- // variable $gomaxprocs changes sched.mmax for now.
23+ // By default, Go keeps only one kernel thread (m) running user code
24+ // at a single time; other threads may be blocked in the operating system.
25+ // Setting the environment variable $GOMAXPROCS or calling
26+ // runtime.GOMAXPROCS() will change the number of user threads
27+ // allowed to execute simultaneously. $GOMAXPROCS is thus an
28+ // approximation of the maximum number of cores to use.
2829//
2930// Even a program that can run without deadlock in a single process
3031// might use more ms if given the chance. For example, the prime
You can’t perform that action at this time.
0 commit comments