且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JavaFX应用程序在关闭后仍然运行

更新时间:2023-01-12 10:10:45

您的应用程序是否会生成任何子线程?如果有,你确保你终止它们(假设它们不是守护程序线程)?

Does your application spawn any child threads? If so have you ensured that you terminate them (assuming that they're not daemon threads)?

如果你的应用程序产生非守护程序线程那么它们(以及你的应用程序) )将继续活着,直到你杀死这个过程为止

If your application spawns non-daemon threads then they (and therefore your app) will continue to live on until such time you kill the process