当前位置:首页 » 编程语言 » pythondaemonthread

pythondaemonthread

发布时间: 2024-09-18 06:31:27

python daemon thread 什么概念

daemon
A boolean value indicating whether this thread is a daemon thread (True) or not (False). This must be set before start() is called, otherwise RuntimeError is raised. Its initial value is inherited from the creating thread; the main thread is not a daemon thread and therefore all threads created in the main thread default to daemon = False.
The entire Python program exits when no alive non-daemon threads are left.
当daemon被设置为True时,如果主线程退出,那么子线程也将跟着退出,
反之,子线程将继续运行,直到正常退出。

热点内容
树莓派3编译文件之后保存退出 发布:2024-09-19 17:30:23 浏览:107
手机版我的世界如何做服务器 发布:2024-09-19 16:59:05 浏览:491
编译器错误都怎么解决 发布:2024-09-19 16:51:53 浏览:472
洛达三代安卓怎么用 发布:2024-09-19 16:41:02 浏览:88
androideclipse目录 发布:2024-09-19 16:10:37 浏览:933
linux系统是什么系统 发布:2024-09-19 16:10:35 浏览:122
数据库财经 发布:2024-09-19 16:03:23 浏览:935
直接脚本 发布:2024-09-19 15:49:09 浏览:242
安卓代码怎么用 发布:2024-09-19 15:35:38 浏览:385
微信为什么要用服务器 发布:2024-09-19 15:35:29 浏览:883