Re:Go Concurrency Patterns: Pipelines and cancellation
by saryant on Friday March 14, 2014 @12:45AM
(#7397035)
I believe that's what the ForkJoinPool is for.
http://docs.oracle.com/javase/7/docs/api/java/util/concurren...
Furthermore, is there a way in "Java SingleThreadExecutor" and its related components that allow automatic scheduling tasks on different threads? For example, you are on a quad-core and you want to have 4 threads running together, with millions of tasks mapped to 4 threads and dynamically balanced.