Thread Safety

MetalOne jcb at iteris.com
Thu Oct 2 14:20:31 EDT 2003


Are atomic operations thread safe in Python?  Can immutable objects,
such as, strings, be created on one thread and then accessed by
another thread, without using locks?

Such operations are not guaranteed thread safe in Java due to caching
optimizations.

If someone could point me to reference documentation on this, that
would be great.




More information about the Python-list mailing list