How to make R use all processors?

前端 未结 7 955
小蘑菇
小蘑菇 2020-12-04 06:46

I have a quad-core laptop running Windows XP, but looking at Task Manager R only ever seems to use one processor at a time. How can I make R use all four processors and spee

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 07:23

    I believe the multicore package works on XP. It gives some basic multi-process capability, especially through offering a drop-in replacement for lapply() and a simple way to evaluate an expression in a new thread (mcparallel()).

提交回复
热议问题