Multiprocess map - Parallel Map

Started by jopython, April 19, 2013, 03:17:38 PM

Previous topic - Next topic

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



(parallel-map func seq max-procs timeout)


This is for utilizing multiple processors instead  of the regular map which is sequential.

cormullion

#1
You might find http://www.newlisp.org/syntax.cgi?code/mapreduce.txt">//http://www.newlisp.org/syntax.cgi?code/mapreduce.txt useful.

jopython

#2
Thanks cormullion. This looks like a implementation of mapreduce before spawn was introduced in newlisp.