title: Java multithreading is not working right
body: <p>I am using an <code>Executor</code> with 4 threads. </p>
  
  <pre><code>Executor exec = Executors.newFixedThreadPool(this.numOfThreads);
          Runnable requestHandler = new Runnable() {
              @Override
              public void run() {
                  try {
                      getImageForURL(spURL, 0);
                  } catch (IOException ex) {
                  } catch (Exception ex) {
                  }
              }
          };
          exec.execute(requestHandler);
  </code></pre>
  
  <p>In <code>getImageForURL</code>, I am printing the name of the thread and the output looks like this. The output does not look right, or is this how it is suppose to look?</p>
  
  <pre><code>name=pool-1-thread-1
  name=pool-2-thread-1
  name=pool-3-thread-1
  name=pool-4-thread-1
  name=pool-5-thread-1
  name=pool-6-thread-1
  name=pool-7-thread-1
  name=pool-8-thread-1
  name=pool-9-thread-1
  name=pool-10-thread-1
  name=pool-11-thread-1
  name=pool-12-thread-1
  name=pool-13-thread-1
  name=pool-14-thread-1
  </code></pre>