I am considering utilizing Python to call various dlls that will perform things like accessing the LAN (on Windows) or making HTTP requests. These dlls might be poorly written and get stuck. My first question is, whether isolating these dll calls in Python threads will guarantee that the main Python thread will not get stuck? My second question is whether Python can kill a thread if the DLL gets stuck in an infinite loop?
I know that I could solve this by launching the dlls in its own processes, but I would prefer to only have a single process.
I could use the latest versions of Python.