test/mc.R

library(parallel)
cores <- detectCores()
cat(sprintf("Running on %d cores\n", cores))
r <- mclapply(1:10, sqrt, mc.cores=cores)
print(r)
mclements/purged documentation built on May 22, 2017, 1:13 a.m.