/***********************************************************************
* Python 3.5 RuntimeError: can't start new thread
* 说明:
* 测试的时候线程开得太多了,导致软件开始,不再能够被处理,卡死。
*
* 2017-1-7 深圳 南山平山村 曾剑锋
**********************************************************************/ 一、参考文档:
. error: can't start new thread
http://*.com/questions/1834919/error-cant-start-new-thread 二、现象:
Traceback (most recent call last):
File "./main.py", line , in <module>
main(sys.argv[:])
File "./main.py", line , in main
network.start()
File "/usr/lib/python3.5/threading.py", line , in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread 三、原因:
很多线程未被处理,占用资源。