![]() |
|
Threading Test - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Python (https://sinister.ly/Forum-Python) +--- Thread: Threading Test (/Thread-Threading-Test) |
Threading Test - m0dem - 03-31-2016 Lately, when I've been working on my Proxy Checker (GitHub repo), I've had to use multi-threading. Threads can sometimes be a pain to get working consistently, so I decided to share this bit of code I wrote this morning in order to better understand threading in Python. I don't use the Queue library, although it can be used. For me, using Queue in connection with threading was overly confusing. You can find the code here: (because the CloudFlare WAF blocked me again! @Oni?) https://gist.github.com/M0dem/ef7c4c1816fa5fc93d081556233938b9 I hope someone may find this to be useful. ![]() Cheers. |