3 ms·
> The single "lock free" idlep looks like it's just moved the futex contention elsewhere. Possibly. The Go 1.1 scheduler is inspired by Java's fork/join schedu
by pron 13y ago
> The single "lock free" idlep looks like it's just moved the futex contention elsewhere.
Possibly. The Go 1.1 scheduler is inspired by Java's fork/join scheduler, which suffered from the same problem in Java 7. In Java 8 it's been improved to no longer have a single wait-list, and external submissions of tasks (i.e. tasks that are not submitted by tasks running in the thread pool, but elsewhere) are multiplexed randomly (IIRC) among the individual thread queues.