Hi,
does the ruby interpreter use both cores automagically or do I have
to do/program something special ?
Kind regards,
mcc
Hi,
does the ruby interpreter use both cores automagically or do I have
to do/program something special ?
Kind regards,
mcc
The ruby interpreter isn’t multithreaded, so it won’t take advantage of
SMP sytems.
does the ruby interpreter use both cores automagically or do I have
to do/program something special ?
The interpreter doesn’t support multithreading itself, so all
ruby-scripts will only use 1 Core, even when they create ruby-threads.
But maybe you can use more than 1 process (e.g. call “fork” instead
creating a thread). Your OS will (hopefully) schedule the second
interpreter on the second core.
best regards,
Matthias
On 8/8/06, Dr Nic [email protected] wrote:
Dick D. wrote:
The ruby interpreter isn’t multithreaded, so it won’t take advantage of
SMP sytems.But you can read your email at the same time
–
Posted via http://www.ruby-forum.com/.
Actually, most second cores on desktop machines (and Windows servers)
are already too busy processing all your spam and viruses.
In article [email protected],
Meino Christian C. [email protected] wrote:
Hi,
does the ruby interpreter use both cores automagically or do I have
to do/program something special ?
You have to do something special.
check out the slave package from Ara T. Howard:
http://rubyforge.org/frs/?group_id=1024&release_id=5630
Phil
Meino Christian C. [email protected] wrote:
Hi,
does the ruby interpreter use both cores automagically or do I have
to do/program something special ?
If you are running JRuby, all threads are native threads, and it will
use as
many cores as you have available.
Dick D. wrote:
The ruby interpreter isn’t multithreaded, so it won’t take advantage of
SMP sytems.
But you can read your email at the same time
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs