From: Florian Gilcher Date: 2012-07-06T01:45:13+09:00 Subject: Re: Green threads in 1.9.* ? --Apple-Mail-25BE45D6-DAA0-4825-BE12-C62CEE99FC2D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 05.07.2012 um 18:34 schrieb Tony Arcieri : > On Thu, Jul 5, 2012 at 6:38 AM, rex goxman wrote: >>=20 >> You might say "do that with a kernel thread." But what if I want to >> spawn this thread over and over again in a tight loop? I don't want or >> need the monstrous overhead of a kernel thread here. I just want a >> green thread. >=20 > If the time it takes to spawn a thread is really too much, use a thread po= ol. Couldn't a similar design be achieved by using Fibers and a Thread pool that= grabs work from a list of ready Fibers?= --Apple-Mail-25BE45D6-DAA0-4825-BE12-C62CEE99FC2D Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=utf-8


Am 05.07.2012 um 18:34 schrieb Tony Arcieri <tony.arcieri@gmail.com>:

On Thu, Jul 5, 2012 at 6:38 AM, rex goxman <lists@ruby-forum.com> wrote:
You might say "do that with a kernel thread."  But what if I want to
spawn this thread over and over again in a tight loop?  I don't want or
need the monstrous overhead of a kernel thread here.  I just want a
green thread.

If the time it takes to spawn a thread is really too much, use a thread pool.

Couldn't a similar design be achieved by using Fibers and a Thread pool that grabs work from a list of ready Fibers?
--Apple-Mail-25BE45D6-DAA0-4825-BE12-C62CEE99FC2D--