multithreading and shared dictionary

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Sat Jul 8 07:12:46 EDT 2006


In <mailman.7924.1152352255.27775.python-list at python.org>, K.S.Sreeram
wrote:

> Alex Martelli wrote:
>> Wrong, alas: each assignment *could* cause the dictionary's internal
>> structures to be reorganized (rehashed) and impact another assignment
>> (or even 'get'-access).
> 
> but wont the GIL be locked when the rehash occurs?

If there is a GIL then maybe yes.  But the GIL is an implementation
detail.  It's not in Jython nor IronPython and maybe not forever in
CPython.  Don't know about PyPy.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list