Multiprocess map - Parallel Map

Q&A's, tips, howto's
Locked
jopython
Posts: 123
Joined: Tue Sep 14, 2010 3:08 pm

Multiprocess map - Parallel Map

Post 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.

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: Multiprocess map - Parallel Map

Post by cormullion »


jopython
Posts: 123
Joined: Tue Sep 14, 2010 3:08 pm

Re: Multiprocess map - Parallel Map

Post by jopython »

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

Locked