title: How to find the name of the parent thread?
body: <p>I know we can have 'parents' and 'children' when we are talking about processes. But is it possible to get parent <code>Thread</code> name? </p>
  
  <p>I did my research, but I have found answer only for <a href="https://stackoverflow.com/questions/4214492/net-is-there-a-way-to-get-the-parent-thread-id">.Net</a></p>
  
  <hr>
  
  <p>Edit: I tried setting names:</p>
  
  <pre><code>public class Main {
  
      public static void main(String[] args) {
          Thread r = new ThreadA();
          r.start();
      }
  
  }
  
  
  
  public class ThreadA extends Thread {
      public void run() {
          Thread.currentThread().setName("Thread A");
          System.out.println("Here  " + Thread.currentThread().getName());
          Thread r = new ThreadB();
          r.setName(Thread.currentThread().getName());
          r.start();
      }
  }
  
  public class ThreadB extends Thread {
      public void run() {
          Thread.currentThread().setName("Thread B");
          System.out.println("Here " + Thread.currentThread().getName());
          Thread r = new ThreadC();
          r.setName(Thread.currentThread().getName());
          r.start();
      }
  }
  
  public class ThreadC extends Thread {
      public void run() {
          Thread.currentThread().setName("Thread C");
          System.out.println("Here " + Thread.currentThread().getName());
      }
  }
  </code></pre>