Python 3.5 RuntimeError: can't start new thread

/***********************************************************************
 *          Python 3.5 RuntimeError: can't start new thread
 * 说明:
 *     测试的时候线程开得太多了,导致软件开始,不再能够被处理,卡死。
 *
 *                                      2017-1-7 深圳 南山平山村 曾剑锋
 **********************************************************************/

一、参考文档:
    1. error: can't 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: can't start new thread

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

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值