当前位置:首页 » 编程语言 » 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-07-02 23:41:46 浏览:547
旧手机忘记密码怎么办 发布:2025-07-02 23:25:52 浏览:150
androidwebview播放 发布:2025-07-02 23:24:42 浏览:537
纳税申报密码什么意思 发布:2025-07-02 23:24:42 浏览:816
存储器的原理与工程 发布:2025-07-02 23:21:17 浏览:407
linuxsnmp安装 发布:2025-07-02 23:07:08 浏览:650
北理c语言答案 发布:2025-07-02 23:05:57 浏览:305
sql同比 发布:2025-07-02 23:03:39 浏览:835
一个服务器获取多个ip 发布:2025-07-02 23:02:43 浏览:786
三星电脑wifi怎么连接wifi密码 发布:2025-07-02 22:55:00 浏览:712