I have a big processing task, which, it seems to me, has matured to increase efficiency with concurrency and parallelism.
I looked at the GPars docs and I found them quite confusing, so I hope people can help here.
The first task that I would like to do in parallel is as follows:
def providerOneProgrammes = providerOneProgrammeService.getProgrammes(timeWindow) def providerTwoProgrammes = providerTwoProgrammeService.getProgrammes(timeWindow)
both return a list of objects, and both can run in parallel.
I would like to execute them together, and then wait for them to finish before processing the return lists (then I will look for matches between the lists, but I will come to them later).
thanks
Rakesh
source share