[rkward-devel] 100% CPU usage after using multicore functions

Michel Lang michellang at gmail.com
Wed Jan 13 13:24:35 UTC 2010


Hi,

I've just discovered that RKWard and the multicore-package
(http://cran.r-project.org/web/packages/multicore/index.html) don't
work well together: After using mclapply(), RKWard remains using 100%
CPU on one core.

A basic example (I'm using R-2.10.1, RKWard-0.5.2 and multicore-0.1-3
on gentoo x86)

library("multicore")
mclapply(1:100, function(x) { mean(rnorm(x)) } )

I guess the problem will also occur with the foreach package when
using the multicore package as a parallel backend.

Best regards,
Michel




More information about the Rkward-devel mailing list