[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jabber-jdev
Subject:    Re: [jdev] parsing xml (xmpp) with ruby
From:       "Steven Parkes" <smparkes () smparkes ! net>
Date:       2008-10-03 16:17:55
Message-ID: 004401c92573$981d3ed0$c857bc70$ () net
[Download RAW message or body]

> IIRC the new Ruby runtime (2.0) has real threads.

Ruby 1.9 and above uses kernel threads rather than green threads, but it
still has a global interpreter lock that keeps ruby code from executing
concurrently. Sometimes things like C extensions can, and, of course, I/O
can. As someone mentioned, even Ruby 1.8 can get some amount of concurrent
I/O/computation since it implements synchronous I/O via async I/O. This
doesn't work for embedded I/O a la DNS though.

_______________________________________________
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: JDev-unsubscribe@jabber.org
_______________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic