i_love_python
i_love_python copied to clipboard
multithreaddownloadXkcd.py isn't actually a multithread implementation
I was just going through the script and I found that you were using higher interface of threading provided by thread module but python has GIL(Global interpreter locker) which actually doesn't run threads in parallel but in sequence by putting them in a process queue, this slows down the process. Instead of using thread module you can use threadpool from multiprocessing module.
This isn't a issue, but couldn't find a medium to update.