Thanks a lot Rainer
On Thu, Jun 11, 2015 at 4:24 PM, Rainer M Krug wrote:
>
> Again: please keep this on r-help!
>
> AROONALOK PYNE writes:
>
> > Hi,
> >
> > My system has 4GB memory. On running htop command on linux terminal, for
> > c(999), a() rug on single cpu core showed stats for
Again: please keep this on r-help!
AROONALOK PYNE writes:
> Hi,
>
> My system has 4GB memory. On running htop command on linux terminal, for
> c(999), a() rug on single cpu core showed stats for 100% cpu
> utilization. On reaching b(), the entire system hanged (no response and the
> cp
Please keep this on the r-help mailing list.
AROONALOK PYNE writes:
> R version 3.0.2 (2013-09-25)
>
>
> Large value : 999
>
>
> I rerun the code as c(1000) for which your machine works fine but
> my code still hangs on reaching b(). I am running it from Linux
> Terminal.
Might be memor
AROONALOK PYNE writes:
> Please check this code :
>
> library(parallel)
> workerFunc <- function(n) { return(n^2) }
> a <- function(){
> CurrentTime <- Sys.time()
> res <- lapply(values, workerFunc)
> TimeTaken <- Sys.time() - CurrentTime
> print(TimeTaken)
> }
> b <- function(){
> Curr
Please check this code :
library(parallel)
workerFunc <- function(n) { return(n^2) }
a <- function(){
CurrentTime <- Sys.time()
res <- lapply(values, workerFunc)
TimeTaken <- Sys.time() - CurrentTime
print(TimeTaken)
}
b <- function(){
CurrentTime <- Sys.time()
numWorkers <- detectCore
5 matches
Mail list logo