Subject: Re: why python+pth?
To: Christian Limpach <chris@pin.lu>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-pkg
Date: 11/18/2003 10:13:35
Christian Limpach <chris@pin.lu> writes:

> If we wanted to support different stack sizes, we could use a tree to
> find the thread.  We'd take a performance hit searching the tree, so we'd
> only use this if there are any stacks with a different size.  Other
> suggestions are welcome...

There's some definite trickiness in how to update such a tree - a
thread that wants to look itself up in the tree can't use locks,
because it has to identify itself to use locks, but the tree shouldn't
change out from under it.

        - Nathan