title: Setting priority to Java's threads
body: <p>I have a program that runs in a few threads. The main thread shares an object with the other threads and in the main I have a call to:</p>
  
  <pre><code>synchronized(obj){
      do stuff
  }
  </code></pre>
  
  <p>I have a suspicion that the main thread is starved and isn't getting access to <code>obj</code>. How do I raise the priority of the main thread or is it already higher than the other threads by default?</p>