Simon Urbanek wrote: > On Mar 18, 2009, at 8:59 , Rune Schjellerup Philosof wrote: >> A simple example of use: >> data1 <- data2 <- matrix(0, r, c) >> dataFiller <- function(i) { >> tmp <- someCalculation(i) >> data1[, i] <<- tmp$result1 >> data2[, i] <<- tmp$result2 >> } >> runParallelInThreads(1:c, dataFiller) >> >> If this can be done almost as fast and simple with processes, for >> instance using the multicore package, then I think it needs to be better >> documented. > > Can you elaborate on the last sentence, please? Things cannot happen > if you don't ask ... >
What I meant with the sentence was: - How would you do the example above using the multicore package? - What is the magnitude of speed reduction comparing the multicore solution with the hypothetical solution using threads? -- Cheers Rune Schjellerup Philosof ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel