Java thread run
<p>I have code like this </p>

<pre><code>  boolean start = false;
  ThreadX a = new ThreadX();
  a.start();
  start = true;

  Class ThreadX extends Thread {

          public void run() {
              while (start == true) {
                ...
              }

          } 
  }
</code></pre>

<p>Is there a problem with this code? I have executed this and did not see any issue just wanted to get a hang whether the thread will start and never execute start = true</p>
