Re:The Unscalable, Deadlock-Prone, Thread Pool
by kitd on Wednesday February 27, 2019 @06:15AM
(#19262490)
Well yeah, Go channels/goroutines too, et al.
The problem isn't just partition of opaque work on threads though, but how to schedule work so that resources other than threads are used efficiently.
GPars etc don't cover that.
The author seems to do a remarkable job of basically describing actors without mentioning the word "actor". I use GPars [1] with Groovy which explicitly supports exactly what they talk about in a very elegant manner. You create a variety of actors and allocate them to different parallel groups so they cannot starve each other of resources, and most of these issues become controllable.
Perhaps it is the Lisp context that resists lumping state into the equation, since Actors usually carry state?
[1] http://www.gpars.org/