From: Eric Wong Date: 2012-07-06T05:53:28+09:00 Subject: Re: Green threads in 1.9.* ? rex goxman wrote: > Anyway, to the point. I'd like to use green threads (NOT kernel > threads) in a Ruby program I'm writing. There is no reason for me to > use kernel threads, and every reason to use green ones. You could try linking Ruby with GNU pth (or GNU nPth). I think pth comes with pthreads stubs, so maybe you can get that working (and report back your experiences :) I suspect pth will conflict with Fibers, however. > If not available, are there any alternatives? I checked into fibers, > but they are not appropriate for what I want because if an exception > happens, it happens in the "main thread" I am executing, which I don't > want. I know you don't like fibers, but the "neverblock" gem uses Fibers transparently under 1.9 to provide green threads. However, I'm not sure how active "neverblock" development is these days.