Page 1 of 1

Multiprocess map - Parallel Map

Posted: Fri Apr 19, 2013 10:17 pm
by jopython
Is there a Parallel version of map (which internally uses spawn) where we can control the number of procs used and timeout?

Something like

Code: Select all

(parallel-map func seq max-procs timeout)
This is for utilizing multiple processors instead of the regular map which is sequential.

Re: Multiprocess map - Parallel Map

Posted: Sat Apr 20, 2013 7:54 am
by cormullion

Re: Multiprocess map - Parallel Map

Posted: Sun Apr 21, 2013 1:18 pm
by jopython
Thanks cormullion. This looks like a implementation of mapreduce before spawn was introduced in newlisp.