An instance of KKMultiServerThread will not become eligible for gc before it's terminated. Keep in mind, the new thread created by JVM calls KKMultiServerThread.run() method. You didn't say what happened.

doors (道士)
2001-9-18 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: Is there anything wrong with this code? No object refers to KKMultiServerThread after it is created. Will it be removed by garbage collector?

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论