Subject: Re: Kernel threads
To: Matt Thomas <matt@3am-software.com>
From: Lennart Augustsson <lennart@augustsson.net>
List: tech-kern
Date: 10/03/2003 15:12:18
There's something like that in the USB code.  It would be nice to
make it generic.

	-- Lennart

Matt Thomas wrote:
> As the number of kernels threads increases (every thread seems to want one)
> I wonder if we should switch to a different model.  Instead of having one
> thread per "task", maybe we should adopt the common mechanism of having a
> crew of worker threads ready to do work.
> 
> If higher level code want something to take place in a thread, it would
> allocate a "work unit" and queue it to be executed.  (which would a wake
> a waiting thread and let it dequeue the work unit and call the routine
> indicated in).
>