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

热点内容
怎么看java 发布:2025-01-13 13:54:18 浏览:10
没脚本导演 发布:2025-01-13 13:52:22 浏览:339
获取android签名 发布:2025-01-13 13:40:21 浏览:595
单片机编译器和驱动 发布:2025-01-13 13:31:33 浏览:440
tis服务器怎么进pe 发布:2025-01-13 13:31:02 浏览:277
android线程与线程通信 发布:2025-01-13 13:30:27 浏览:39
FTP服务器本地策略 发布:2025-01-13 13:20:47 浏览:486
地下城堡2挂机脚本 发布:2025-01-13 13:20:44 浏览:206
web云服务器配置 发布:2025-01-13 13:19:54 浏览:460
小康密码是多少 发布:2025-01-13 13:19:13 浏览:42