0

Let’s say I’m wrapping a C function which is thread-safe. Will it still be thread-safe in Python? May I use it safely with threading.Thread without locking? If not, why?

kebabdubai
  • 75
  • 6
  • 2
    Please search first (as it will often enable writing a more focused / novel question) • https://stackoverflow.com/questions/42006337/python-c-api-is-it-thread-safe , https://wiki.python.org/moin/GlobalInterpreterLock , https://stackoverflow.com/questions/39206242/why-do-i-have-to-worry-about-thread-safety-in-cpython , https://stackoverflow.com/questions/45157694/a-multi-threading-example-of-the-python-gil , https://softwareengineering.stackexchange.com/questions/186889/why-was-python-written-with-the-gil – user2864740 Sep 25 '21 at 21:36

0 Answers0