Re:A little Golang way
by pcwalton on Wednesday August 05, 2015 @11:02PM
(#10014319)
No, the context switching overhead tends to be minimal if you're using a well-tuned kernel. You're doing a context switch to the kernel for I/O in the first place, and in a green thread model you have to do a userspace context switch in addition to the context switch the kernel imposes to get back into your scheduler.
[ Parent
| on HN ]
Are there benchmarks to support that? JVM greenthreads vs. linux user threads, for example?