0

I have the following psuedocode situation:

results1 <- mclapply(stuff, myfunc1()) results2 <- mclapply(morestuff, myfunc2()) finalresults <- mclapply(results1, results2)

Is the package smart enough to wait until all the threads spawned by results1 and results2 are completed before trying to calculate finalResults? If not, is there a flag I can put in so that it doesn't move forward until results1 is fully complete? Etc?

4

1 回答 1

0

是的,在前面的行完成之前,不会执行第 2 行和第 3 行。

于 2015-07-09T21:54:20.577 回答