Threads in Python

Aahz Maruch aahz at
Mon Feb 14 00:31:26 EST 2000

In article <8881oc$5o9$1 at>,
Tobias Rademacher <toby-wan-kenobi at> wrote:
>I just decided to learn Python. Are Threads intregreated in the Language
>like in Java?

As Fredrik said, yes and no.  Threads are incredibly easy to use in
Python; the biggest drawback is the Python global interpreter lock,
which means that only one thread can run Python code at any time.
That's usually not a big drawback, because threading is usually used to
optimize I/O, and extension libraries (including I/O) can release the
global lock.
                      --- Aahz (Copyright 2000 by aahz at

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6

Have you coined a word today?

More information about the Python-list mailing list