Displaying 1 result from an estimated 1 matches for "r65130".
Did you mean:
65130
2014 May 21
2
issue with parallel package
...ite a lot.
library(parallel)
for (n in 1:1000) {
p <- mcparallel(sqrt(n))
res <- mccollect(p, wait=FALSE, timeout=1000)
mccollect(p)
if (is.null(res)) cat(n," NULL!\n")
}
It does not happen in R-3.0.3.
(To be exact, I have checked out R-devel revision r65130
for my current tests.)
I found that this behavior is introduced in revision r65143.
When I insert
Sys.sleep(0.1)
in the loop then this behavior disappears in R-3.1.0.
There is also another difference between R-3.1.0 and R-3.0.3:
When the line
mccollect(p)
is replaced by
mccollect(p, wa...