首页 > 编程语言 > 详细

Python 3.5 RuntimeError: can't start new thread

时间:2017-01-07 16:40:52      阅读:1611      评论:0      收藏:0      [点我收藏+]
/***********************************************************************
 *          Python 3.5 RuntimeError: can‘t start new thread
 * 说明:
 *     测试的时候线程开得太多了,导致软件开始,不再能够被处理,卡死。
 *
 *                                      2017-1-7 深圳 南山平山村 曾剑锋
 **********************************************************************/

一、参考文档:
    1. error: cant start new thread   
        http://stackoverflow.com/questions/1834919/error-cant-start-new-thread

二、现象:
    Traceback (most recent call last):
      File "./main.py", line 96, in <module>
        main(sys.argv[1:])
      File "./main.py", line 74, in main
        network.start()
      File "/usr/lib/python3.5/threading.py", line 844, in start
        _start_new_thread(self._bootstrap, ())
    RuntimeError: cant start new thread

三、原因:
    很多线程未被处理,占用资源。

 

Python 3.5 RuntimeError: can't start new thread

原文:http://www.cnblogs.com/zengjfgit/p/6259429.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!