Skip to content
Prev 25921 / 398503 Next

Is there plan to make R multithread?

Tony and Dirk have answered the question in the subject.  However, making
R multithreaded will not of itself make it run faster on a dual CPU
machine, the rather different question in the body of the message.
That would happen for most uses of R only if the inner computations were
able to make use of multiple threads and processors.  That means either
reprogramming them yourself (Tony's answer) or using different versions of
e.g. the linear algebra routines.   We do hope in due course to allow
multi-threaded BLAS routines, but there are problems at present (see the
R-admin.texi manual).

I use a dual-CPU machine all the time (I am writing this on one).  My
experience is that few programs run faster because of two CPUs (you need
many more to make multi-processing really worthwhile), but doing several
things at once is beneficial.  E.g,, there is a background R job running
now that has been running for a couple of days and unlike single-CPU
machines I notice no difference in response to the keyboard.
On Mon, 2 Dec 2002, Dirk Eddelbuettel wrote:

            
and that is aimed more at running several R tasks `at once' in a single
session.