Python daemon thread 解說
閱讀 Python Threading 文件時,關於 Thread Objects 中有提到 Daemon Thread
。
A thread can be flagged as a “daemon thread”. The significance of this flag is that the entire Python program exits when only daemon threads are left.
單看說明其實還不是特別清楚,可以用個範例實際幫助理解。
Last updated on Sep 8, 2023 in Python 程式設計 - 中階 by Amo Chen ‐ 2 min read