Global Interpreter Lock and access to data (eg. for NumPy arrays)

后端 未结 2 1272
借酒劲吻你
借酒劲吻你 2020-12-16 05:11

I am writing a C extension for Python, which should release the Global Interpreter Lock while it operates on data. I think I have understood the mechanism of the GIL fairly

2条回答
  •  旧巷少年郎
    2020-12-16 05:27

    Can I access data in a Python object while the thread does not own the GIL?

    No you cannot.

提交回复
热议问题