'How to find and fix deadlocked threads?

Taking an intermediate python course and I was using Sublime for a homework on threading. I was running the code in Sublime (Tools > Build). A Lock (imported from threading) was blocking but didn't know how to fix it.

I emailed my instructor and found what I was doing wrong, everything runs okay. But I was worried about leaving those threads hanging.

My question is: Are those deadlocked threads still hanging around? I have since closed Sublime; is that enough? My instructor didn't know and said I should ask here.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source