当前位置:首页 » 编程语言 » 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时,如果主线程退出,那么子线程也将跟着退出,
反之,子线程将继续运行,直到正常退出。

热点内容
电脑服务器在家里对人体有害吗 发布:2025-08-24 11:38:43 浏览:897
王的编程 发布:2025-08-24 11:28:51 浏览:679
mysql远程同步数据库 发布:2025-08-24 11:16:33 浏览:703
少儿编程机器人培训机构排名 发布:2025-08-24 11:14:58 浏览:261
金蝶标准版服务器看不到ip地址 发布:2025-08-24 10:57:23 浏览:411
FTP循环全称 发布:2025-08-24 10:40:22 浏览:129
安卓手机如何恢复误删的视频 发布:2025-08-24 10:40:20 浏览:201
摩斯密码22什么意思 发布:2025-08-24 10:19:55 浏览:36
java输出图片 发布:2025-08-24 10:12:13 浏览:916
python文件夹内容 发布:2025-08-24 10:11:38 浏览:401