Writing a thread-safe class

Timothy Madden terminatorul at gmail.com
Sat Sep 12 15:54:34 CEST 2009


Carl Banks wrote:
[...]
> 
> You are not correct.  Dictionary operation (like getting and setting
> items) are atomic and limited to one thread at a time, thus thread-
> safe.
 >
> (In fact, in CPython only one thread can execute Python code at a
> time, in most cases.  This is called the Global Interpreter Lock, or
[...]

I find that hard to believe, but I will look into it.

Thank you,
Timothy Madden



More information about the Python-list mailing list