Python 3.5 RuntimeError: can't start new thread

简介: /*********************************************************************** * 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

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

 

目录
相关文章
|
4月前
|
Python
python RuntimeError: main thread is not in main loop
python RuntimeError: main thread is not in main loop
79 1
|
3月前
|
存储 安全 Python
什么是Python中的线程局部存储(Thread Local Storage)?
【2月更文挑战第3天】【2月更文挑战第6篇】
Python线程锁(Thread Lock)和进程锁(Process Lock)
Python线程锁(Thread Lock)和进程锁(Process Lock)
|
4月前
|
缓存 安全 程序员
Python 的并发编程:解释什么是线程安全(Thread Safety)?
Python 的并发编程:解释什么是线程安全(Thread Safety)?
|
9月前
|
调度 开发者 Python
Python的线程Thread的自我介绍
Python的线程Thread的自我介绍
45 0
|
运维 Java Python
用python提前预测jvm cpu100%自动dump thread升级版
用python提前预测jvm cpu100%自动dump thread升级版
161 0
用python提前预测jvm cpu100%自动dump thread升级版
|
Python
Python中Thread多线程的创建与使用
Python中Thread多线程的创建与使用
117 0
|
存储 Java Unix
Python线程池(thread pool)创建及使用+实例代码
Python线程池(thread pool)创建及使用+实例代码
978 0
Python线程池(thread pool)创建及使用+实例代码