title: Parallel programming with threads in Java
body: <blockquote>
    <p>Parallel programming was possible in Java only from Java 7 with the
    advent of <code>Join/Fork framework</code>.</p>
  </blockquote>
  
  <p>Let's say in Java, using <code>ExecutorService</code> I create a thread pool of say 4 threads and submit to it say 10 tasks which means 4 threads will start executing the 4 tasks and other 6 tasks will be picked up by threads as and when any thread finishes its task.</p>
  
  <p>Let's assume I have a quad processor having 4 cores, I know a thread can be run on a single core(not taking hyper-threading concept here) so will all my 4 threads work in parallel, 1 thread running on 1 core? Isn't it a parallel programming?</p>
  
  <p><strong>EDIT:</strong> <a href="https://www.youtube.com/playlist?list=PLMod1hYiIvSZL1xclvHcsV2dMiminf19x" rel="nofollow noreferrer">Source of reading</a>  - This is the Java 8 playlist where in chapter 1 it was referred that parallel programming was possible from Java 7 onwards.</p>