title: Java multithreading. Same System.currentTimeMillis() values on different threads
body: <p>I want to use the result of <code>System.currentTimeMillis()</code> in the multithreaded appplication to generate unique IDs. This is my code:</p>
  
  <pre><code>    class MyRunnableClass implements Runnable{
          @Override
          public void run() {
              long thisValueShouldBeUnique = System.currentTimeMillis ();
          }
      }
  </code></pre>
  
  <p>I start 10 threads which run MyRunnableClass object run() method.
  Is it true, that sometimes the result of <code>System.currentTimeMillis ()</code> in different threads may be the same?</p>