Threads in Python
Aahz Maruch
aahz at netcom.com
Mon Feb 14 00:31:26 EST 2000
In article <8881oc$5o9$1 at news02.btx.dtag.de>,
Tobias Rademacher <toby-wan-kenobi at gmx.de> 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 netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Have you coined a word today?
More information about the Python-list
mailing list