阅读背景:

Python中的不变性和线程安全性

来源:互联网 

I'm cleaning some of the Python code I wrote when I was...not as knowledgeable. Primarily I am killing some of the complexity that stemmed from an incomplete understanding of threading in Python. I need to make a list of items thread-safe, and I'd like to do it via immutable lists, instead of the usual locking approach. I know that immutable objects are very special with regard to threading because all the thread-safety issues surrounding incomplete state changes simply disappear.I'm cleaning some of the Python code I wrote wh




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: