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

三、原因:
    很多線程未被處理,占用資源。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM