title: Executors Factory method newScheduledThreadPool always returns the same Thread pool
body: <p>As per the Java Specifications:
  <code>public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize)</code> 
  "Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically."</p>
  
  <p>But from my experience even if I create two seperate <code>ScheduledExecutorService</code> calling the <code>newScheduledThreadPool(int corePoolSize)</code> factory method twice and schedule two completely different Callable tasks, both the threads run synchonously i.e. one waits on the other. Considering two seperate thread pools have been created, they shoud have run simultaneously.</p>
  
  <pre><code>public static ScheduledExecutorService SCANNER_SERVICE = Executors.newScheduledThreadPool(10);
  public static ScheduledExecutorService UNSERVICERESTORED_SCANNER_SERVICE = Executors.newScheduledThreadPool(10);
  
  Scanner scanner=new Scanner();
  UnServiceRestoredTicketScanner unServiceRestoredTicketScanner=new UnServiceRestoredTicketScanner();
  
  if(SCANNER_SERVICE.isShutdown())
      SCANNER_SERVICE=Executors.newScheduledThreadPool(10);
  SCANNER_SERVICE.scheduleWithFixedDelay(scanner, 0, 30, TimeUnit.SECONDS);
  
  
  if(UNSERVICERESTORED_SCANNER_SERVICE.isShutdown())
      UNSERVICERESTORED_SCANNER_SERVICE=Executors.newScheduledThreadPool(10);
  UNSERVICERESTORED_SCANNER_SERVICE.scheduleWithFixedDelay(unServiceRestoredTicketScanner, 0, 40, TimeUnit.SECONDS);
  </code></pre>
  
  <p><strong>Output:</strong><br></p>
  
  <pre><code>Scanner Thread started - com.csp.productionsupport.queuemonitor.events.Scanner@1fa6d18
  ServiceRestoredTicketScanner Thread started - com.csp.productionsupport.queuemonitor.events.UnServiceRestoredTicketScanner@15ed659
  Thread ended - com.csp.productionsupport.queuemonitor.events.Scanner@1fa6d18
  Scanner Thread started - com.csp.productionsupport.queuemonitor.events.Scanner@1fa6d18
  ServiceRestoredTicketScanner Thread ended - com.csp.productionsupport.queuemonitor.events.UnServiceRestoredTicketScanner@15ed659
  Thread ended - com.csp.productionsupport.queuemonitor.events.Scanner@1fa6d18
  Scanner Thread started - com.csp.productionsupport.queuemonitor.events.Scanner@1fa6d18
  ServiceRestoredTicketScanner Thread started - com.csp.productionsupport.queuemonitor.events.UnServiceRestoredTicketScanner@15ed659
  Thread ended - com.csp.productionsupport.queuemonitor.events.Scanner@1fa6d18
  Scanner Thread started - com.csp.productionsupport.queuemonitor.events.Scanner@1fa6d18
  ServiceRestoredTicketScanner Thread ended - com.csp.productionsupport.queuemonitor.events.UnServiceRestoredTicketScanner@15ed659
  Thread ended - com.csp.productionsupport.queuemonitor.events.Scanner@1fa6d18
  </code></pre>