From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Wed, 03 Jun 2009 19:11:31 -0700 Subject: [sup-talk] Sup is hanging In-Reply-To: References: <1244050695-sup-5990@javelin> <1244053108-sup-4982@javelin> <1244064889-sup-9506@entry> Message-ID: <1244081477-sup-4133@entry> [resent to list] Reformatted excerpts from Edward Z. Yang's message of 2009-06-03: > That's what I find surprising, since Sup is multithreaded. I suppose > all of the threads are blocking on the select. It's possible... Ruby does use green threads and a GIL, so there's always the possibility that something in C land will block all Ruby threads, but my impression was that that was an issue mainly with third-party libraries. I believe that Net::IMAP is pure Ruby, thus using the core Ruby IO mechanisms, and I thought those were pretty good about being preemptible. Curious! -- William