title: Priorities set on thread has no effect when start is called on the thread object
body: <p>I executed below code :</p>
  
  <pre><code>public class TestMain extends Thread{
  
      public static Runnable getRunnableObject(){
          Runnable r = new Runnable(){
              @Override
              public void run() {
                  System.out.println("inside runnable");
              }
          };
  
          return r;           
      }
  
      public static void main(String args[]){
          Thread t2 = new Thread(getRunnableObject());
      //  t2.start();
          System.out.println("name "+t2.getName()+" id "+t2.getPriority()+" class "+t2.getClass()
                  +" priortity "+t2.getPriority()+" state "+t2.getState()+" alive/dead "+t2.isAlive());
  
          System.out.println("runtime"+Runtime.getRuntime().availableProcessors());
          t2.setPriority(MAX_PRIORITY);
          System.out.println(t2.getPriority());
  
          t2.setPriority(MIN_PRIORITY);
          System.out.println(t2.getPriority());
  
          t2.setPriority(NORM_PRIORITY);
          System.out.println(t2.getPriority());
      }
  }
  </code></pre>
  
  <p>Output :</p>
  
  <pre><code>name Thread-0 id 5 class class java.lang.Thread priortity 5 state NEW alive/dead false
  runtime4
  10
  1
  5
  </code></pre>
  
  <p>Now I run it once again uncommenting the code at line 22.</p>
  
  <p>output 2 :</p>
  
  <pre><code>inside runnable
  name Thread-0 id 5 class class java.lang.Thread priortity 5 state RUNNABLE alive/dead true
  runtime4
  5
  5
  5
  </code></pre>
  
  <p>Can you tell me why setting the priority is not working when I called start() on the thread ?</p>