谢谢指教。
但我随便在网上搜setDaemon,都是这么说的。而且我发现网上的举例我实际运行出来根本不对。
比如下面这个链接:
https://blog.csdn.net/zhangzheng0413/article/details/41728869?utm_medium=distribute.pc_relevant_download.none-task-blog-2~default~BlogCommendFromBaidu~default-2.test_version_3&depth_1-utm_source=distribute.pc_relevant_download.none-task-blog-2~default~BlogCommendFromBaidu~default-2.test_version_
这里面2是讲的setDaemon,我把里面2.X的语法改成3.X的语法然后运行,和文中的结果根本不一样。
我现在都怀疑是不是2.x和3.x在这方面完全不同。
【 在 ToSimplicity 的大作中提到: 】
: 哪本书这么说的?
: In multitasking computer operating systems, a daemon (/'di:m?n/ or /'de?m?n/)[1] is a computer program that runs as a background process, rather than being under the direct control of an interactive user.
: doc的说明是精准的,主程序想要退出时根本不理daemon线程,说走就走。
: ...................
--
FROM 1.95.148.*