title: Is Java 8 streams atomic?
body: <p>I read a few posts, however, I'm still confused.</p>
  
  <p>I know that parallel streams will be executed in a parallel manner that will utilise the CPUs. and I believe that the sub jobs will be executed as atomic units, am I correct?</p>
  
  <p>But what about regular Java 8 streams?</p>
  
  <p>If i execute let's say the next line of code:</p>
  
  <pre><code>users.stream().map(user-&gt;user.getUsername()).collect(Collectors.toList()); 
  </code></pre>
  
  <p>Will that line be executed in a thread-safe/atomic manner as well?</p>