Re: Threads question

Raul Miller (rdm@test.legislate.com)
Sat, 26 Apr 1997 02:00:55 -0400


On Apr 26, Stefan Monnier wrote
> Listen more carefully to what all those guys said:
>
> "it's far better, performance-wise, to have a queue of events
> which are processed by a dynamic number of worker threads"
>
> I could translate it into:
>
> "it's far better, performance-wise, to multiplex a queue of
> super-lightweight-threads on a dynamic number of kernel threads"
>
> Your "events" in the queue just happen to be a custom-designed
> representation of each thread's context: that's why it's more
> efficient than a run-of-the-mill thread.

That depends on what you mean by "thread". An event handler typically
does not have all the feature of a posix thread. On the other hand,
if "thread" is just a buzz-word, who cares how it's implemented?

-- 
Raul