Python built-in types dict, list, thread it safe

Recently found a Python database connection is not thread-safe, the results of which making me wonder where all the variables of whether multi-threaded security issues, today finally found the right answer, that is the Python built-in types dict, list, tuple It is thread-safe.

Please refer to the official explanation: http://docs.python.org/glossary.html#term-global-interpreter-lock

 

 Reference: https://blog.csdn.net/u010649766/article/details/79740873

Guess you like

Origin www.cnblogs.com/a438842265/p/11599246.html