title: Thread join(milliseconds) not killing thread in Java
body: <p>I am trying to timeout a running Thread with a Thread.join(millis), but it just hangs and does not timeout. What could be the cause of this? Sample code</p>
  
  <pre><code>public static void main(String[] args) throws InterruptedException {
      final Thread t1 = new Thread(() -&gt; {
          for (int i = 0; i &lt; 100000000000000000L; i++) {
          }
      });
      t1.start();
      t1.join(100);
      System.out.println("t1.join called");
  }
  </code></pre>