python的守护线程
时间: 2023-08-27 22:13:55 浏览: 83
在Python中,守护线程(daemon thread)是后台线程,在所有前台线程结束后会自动退出。它们的生命周期不受主线程的影响。当所有前台线程结束时,守护线程就会被系统自动回收,即使它们没有执行完所有任务。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [python 守护线程](https://blog.csdn.net/anzhang5248/article/details/102372528)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [python守护线程](https://blog.csdn.net/threestooegs/article/details/120012514)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文