Moon Light Box

Time is Money

Java - Create Thread within a Thread?

| Comments

1.

A better approach would be to use a ThreadPool and a ScheduledExecutorService. Starting a thread from a thread is not inherently bad but may indicate a flaw in your design.

2.

In Java, all threads are owned by the process, and it doesn't matter from where they are started.

See the topic.
http://stackoverflow.com/questions/21883236/

java

Comments

comments powered by Disqus