Meaning of daemon property on Python Threads

前端 未结 3 618
鱼传尺愫
鱼传尺愫 2020-12-01 04:44

I\'m a little confused about what setting a thread to be a daemon means.

The documentation says this:

A thread can be flagged as a “daemon

3条回答
  •  时光说笑
    2020-12-01 05:20

    Setting thread.daemon = True will allow the main program to exit. Apps normally wait till all child threads are finished before completing.

提交回复
热议问题