[Python-Dev] Making python C-API thread safe (try 2)

Martin v. Löwis martin at v.loewis.de
Thu Sep 11 22:40:10 CEST 2003

Shane Hathaway <shane at zope.com> writes:

> I wonder whether others would consider such a thing valuable, or even
> feasible. :-)

I consider it valuable, but not feasible. Contrary to your analysis, I
believe the biggest problem with shared memory is pointer/address
management. E.g. if you have a shared list L, and do


then a reference to the object 1 is put into L[0]. However, the
pointer is only valid in the process writing the reference, not in
other processes. Fixing that is nearly impossible, except *perhaps* by
reimplementing Python from ground up.


More information about the Python-list mailing list