Forum: JRuby real ruby thread

Posted by rubix Rubix (rubix01)
on 2011-12-21 13:30
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,
Posted by Bob Whiteside (rawhite)
on 2011-12-21 19:25
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.