All POJO apps start by invoking the main method. In it's most simple case this method will do all of the work, creating objects, calling methods etc. Once main completes, the JVM is told to shut down using a DestroyJavaVM thread which waits for all non-daemon threads to complete before doing it's work. This is to ensure that any threads you create run to completion before the JVM is torn down.
Any app that creates threads and relies solely on their functionality will allways have a DestroyJavaVM thread waiting for it to finish. Since all it is doing is joining all other running threads it does not consume any resources.
Post a Comment
Subscribe to:
Post Comments (Atom)
Featured Post
Updated Coupons / promo codes for Google Apps for Work / Business
To redeem: 1. Sign up for Google Apps 2. Go to your billing settings 3. Choose your payment plan 4. Enter your promo code ...

-
Change to the bin directory $ cd wildfly -[ version ]/ bin Start the server in domain mode $ ./ domain . sh Start the server in standa...
-
Reset password of Jenkins Prefer way, No securities were harmed See also: What is Jenkins' initial admin password To res...
-
In case your Jenkins CI fails to complete building your project but only logging the following: ERROR: Maven JVM terminated unexpectedly w...
