How to know who kills my threads

后端 未结 15 716
南旧
南旧 2020-12-05 00:19

I got a thread that is just banishing.. i\'d like to know who is killing my thread and why.

It occurs to me my thread is being killed by the OS, but i\'d like to

15条回答
  •  情歌与酒
    2020-12-05 00:49

    The process might be terminating. That would be what worker.IsBackground = true; is designed to do, kill your thread when the main thread exits.

提交回复
热议问题