The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Thnx...next question

Posted by Hiran on November 20, 2001 at 5:44 AM

Thnx Chin. My next question is two-fold.
Background Info:
I have four java files in a project - ExecuteApp.java, ExecuteProcess.java, Read.java, and Task.java - and ExecuteApp calls a method in Read and then calls a method in Task as a new Thread (because the method called is an endless while loop). Both, the methods in Read and Task call a method in ExecuteProcess.
Question 1:
When the JVM exits, is the Thread still running? If not, how can I get it to run apart from the JVM? Or will I have to keep the JVM running the whole time?
Question 2:
If the Thread is still running after the JVM exits, what will happen when the method in ExecuteProcess is called?
Thnx in advance for the help!
Hiran






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us