Re:Scala vs. Go TCP Benchmark
by willvarfar on Tuesday August 06, 2013 @04:34AM
(#6165456)
Is the OS not scheduling M runnable threads on N cores? Blocking/non-blocking is just an API distinction, and languages implement one in terms of the other.
[ Parent
| on HN ]
Goroutines are not threads. You can have a dozen goroutines which would only run on a smaller subset of OS threads.
Re:Scala vs. Go TCP Benchmark
by willvarfar on Tuesday August 06, 2013 @03:18PM
(#6168581)
They are threads. Technically they are "green threads". The runtime does not map them to OS threads, although technically if it chose to it could, because goroutines are abstract things and the mapping to real threads is a platform decision.