當前位置:首頁 » 編程語言 » 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-03 07:17:42 瀏覽:109
莫高窟的無線網路密碼是多少 發布:2025-07-03 07:08:25 瀏覽:56
win10u盤怎麼隱藏的文件夾 發布:2025-07-03 07:07:03 瀏覽:26
安卓系統10什麼時候發布 發布:2025-07-03 07:06:16 瀏覽:19
康婷復銷演算法 發布:2025-07-03 07:05:41 瀏覽:741
大呼腳本 發布:2025-07-03 07:01:43 瀏覽:506
魅族安卓7和安卓8什麼區別 發布:2025-07-03 06:57:36 瀏覽:61
編譯國外的報紙 發布:2025-07-03 06:54:26 瀏覽:827
oss編程 發布:2025-07-03 06:53:06 瀏覽:968
apache解析php7 發布:2025-07-03 06:47:34 瀏覽:895