Re: [R] Is R on Windows multi-threaded

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Fri, 11 Jan 2008 09:58:39 -0500

On 1/11/2008 9:28 AM, Rees, David wrote:
> Hi,
>
> A previous thread suggests that R on Windows is multi-threaded
>
> http://tolstoy.newcastle.edu.au/R/help/03b/6946.html

Rgui is normally single threaded. Rterm runs two threads in order to keep graphics windows updated. Most computation happens in just one thread.
>
> When I'm running R 2.5.1 on a dual core pc I get Rgui.exe uses up to 50%
> of the available cpu and the rest is not used. i.e. it only uses one
> cpu. I'm soon going to get a nice shiny new 8 cpu machine which it would
> be very nice to fully utilize.
>
> Is there any way to get R to use all the cpus - should this happen
> automatically?

Not currently, other than by running multiple instances of R. There are packages available to help multiple instances communicate.

There's also an experimental package by Luke Tierney in the works that parallelizes computations in one instance. See this message:

http://tolstoy.newcastle.edu.au/R/e3/devel/07/11/0291.html

Note his warning:

"It is not too hard to get parallel versions to use all available processor cores. The challenge is to make sure that the parallel versions don't run slower than the serial versions."

Duncan Murdoch



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 11 Jan 2008 - 15:03:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Jan 2008 - 15:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive