What about NGPT in Linux, though? That’s M:N, and didn’t require the same amount of kernel/user interaction. Also abandoned in favor of 1:1. Seehttp://www.drdobbs.com/open-source/nptl-the-new-implementation-of-threads-f/184406204 …
I agree that Cilk certainly has benefits over 1:1—we have a Cilk clone called Rayon in Rust that is widely used (in Firefox for parallel CSS styling, for example). My comments are about threads that do I/O.
-
-
Yeah, rayon is fantastic. https://dave.cheney.net/2014/06/07/five-things-that-make-go-fast … says that go is NOT preemptive. Has that changed since? I recall that it is preemptive, but my memory is real bad. I'll go through the code soon.
-
Like other M:N threading systems, go threads are cooperative at one level (from the perspective of the implementation of the thread system) but preemptive at another level (from the perspective of the go programmer).
- 19 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.