0 votes
in Python by
How is Python Language thread safe?

1 Answer

0 votes
by

Python Language ensures safe access to threads. It uses the GIL mutex to set synchronization. If a thread loses the GIL lock at any time, then you have to make the code thread-safe.

For example, many of the Python Language operations execute as atomic such as calling the sort() method on a list.

Related questions

0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
0 votes
asked Aug 29, 2020 in Python by Robindeniel
...