Multithreaded python urllib2-based downloader drives the computer to Standby/Sleep

这一生的挚爱 提交于 2019-12-11 16:17:23

问题


I created program that downloads web pages and processes them in multithreaded way (scraper). During the working of the program, the computer gets sleeps and enters into Stand-By mode.

I try adding various workarounds - adding time.sleep(), writing to a temp file, writing to the console and none of this prevented entering Stand-By mode. Since there is ongoing network activity, what else could I try?

来源:https://stackoverflow.com/questions/7671052/multithreaded-python-urllib2-based-downloader-drives-the-computer-to-standby-sle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!