Lines Matching refs:Threads
16 // The scheduler's job is to distribute ready-to-run goroutines over worker threads.
28 // We need to balance between keeping enough running worker threads to utilize
29 // available hardware parallelism and parking excessive running worker threads
46 // unparking as the additional threads will instantly park without discovering
51 // idle P and there are no "spinning" worker threads. A worker thread is considered
54 // Threads unparked this way are also considered spinning; we don't do goroutine
55 // handoff so such threads are out of work initially. Spinning threads do some
61 // new threads when readying goroutines. To compensate for that, if the last spinning
655 // due to races with concurrently executing threads,
1170 // Create an extra M for callbacks on threads not created by Go.
1315 // to start threads for us so that we can play nicely with
1583 // Add 1 to the number of threads
1775 // be conservative about spinning threads
1841 // startTheWorld will unpark threads as necessary.
2027 // the system is fully loaded so no spinning threads are required.
3188 // other threads, so mp is usually not getg().m.
3692 // freezetheworld will cause all running threads to block.
3987 print("SCHED ", (now-starttime)/1e6, "ms: gomaxprocs=", gomaxprocs, " idleprocs=", sched.npidle, " threads=", sched.mcount, " spinningthreads=", sched.nmspinning, " idlethreads=", sched.nmidle, " runqueue=", sched.runqsize)