Real ruby thread

Hi,

I am new with Jruby, and I want to use it to perform multithread
How can I use it to do real concurrent simultaneous threads
for example (using openuri to download web pages from a queue of url)

regards,

Hi Rubix,

It’s my belief that in JRuby, you just do Thread.new {… whatever…}
and
you get a real thread. JRuby uses “real” threads, as opposed to Ruby.

In fact, Charles just recently wrote a Wiki entry on this topic:

https://github.com/jruby/jruby/wiki/Concurrency-in-jruby

Cheers,
–Bob

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs