title: Is there any way to distinguish the main Thread from any Threads that it spawns?
body: <p>I know that the <code>getName()</code> function on the main thread will return the String <code>main</code>, but this can be changed with <code>setName()</code>.</p>
  
  <p>Is there any way to always determine the main thread of an application?</p>