Reducer interface
Rémi Forax
forax at univ-mlv.fr
Sat Sep 17 15:23:59 PDT 2011
On 09/17/2011 11:54 PM, Kasper Nielsen wrote:
> Hi,
>
> Can somebody explain to me how the Reducer interface works in a parallel
> setting?
> I'm using something like E reduce(E a, E b) myself.
> And I fail to understand how you can use two different parameter types
> unless you force all usage to be serial (non-parallel) application of
> elements.
>
> cheers
> Kasper
>
ooops, very good question,
I remember asking myself the same question one year ago contemplating
the ParallelArray API [1] of Doug Lea.
Rémi
[1]
http://gee.cs.oswego.edu/dl/jsr166/dist/extra166ydocs/extra166y/ParallelArray.html#reduce%28extra166y.Ops.Reducer,%20T%29
More information about the lambda-dev
mailing list