Status of Python threading support (GIL removal)?
Hendrik van Rooyen
mail at microcorp.co.za
Mon Jun 22 04:03:13 EDT 2009
"Paul Rubin" <http://phr.cx@NOSPAM.invalid> wrote:
> "Hendrik van Rooyen" <mail at microcorp.co.za> writes:
> > I think that this is because (like your link has shown) the problem
> > is really not trivial, and also because the model that can bring
> > sanity to the party (independent threads/processes that communicate
> > with queued messages) is seen as inefficient at small scale.
>
> That style works pretty well in Python and other languages. The main
> gripe about it for Python is the subject of this thread, i.e. the GIL.
I have found that if you accept it, and sprinkle a few judicious
time.sleep(short_time)'s around, things work well. Sort of choosing
yourself when the thread gives up its turn.
- Hendrik
More information about the Python-list
mailing list