I was wondering if somebody could point me to a simple equivalent of python\'s multiprocessing module in java.
I have a simple parallel processing scenario (where no
There's no exactly-compatible class, but ExecutorService gives you everything you need to implement it.
In particular, there's no function to map a Callable over a Collection and wait on the results, but you can easily build a Collection out of a Callable and Collection, then just call invokeAll, which returns you a List.
(If you want to emulate some of the other functions from multiprocessing.Pool, you will need to loop around submit instead and build your own collection of things to wait on. But map is simple.)