Does python use compare and swap operations

Trying to find if python supports CAS operations, block free programming, concurrency like in java?

+3


source to share


1 answer


Python does not have these operations. Java has more complex concurrency controls than Python.

CPython (typical implementation of almost all users) has a global interpreter lock that you want to understand.



Jython is a JVM implementation of Python and therefore shares many of the characteristics of Java concurrency.

+3


source







All Articles