title: Threads within threads in Java?
body: <p>I am currently thinking about how to design a multithreading system in Java that needs to do some heavy network processing and database storage. The program will launch three basic threads at first. Along these basic threads, I would like to launch other threads not from the main program but from two of the threads. Is it possible for a thread to launch another thread leading to some sort of a hierarchy like:</p>
  
  <pre><code>&gt; Parent -&gt;t0 thread1 -&gt; t1 tread1.1  
  &gt;        -&gt;t0 thread2
  &gt;        -&gt;t0 thread3 -&gt; t2 thread3.1
  
  t0= inital time
  t1,t2 = time at a point in the running thread
  t1 != t2 
  </code></pre>
  
  <p>If not could somebody provide a theoretical solution with references?</p>