title: Multiple threads processing same record of ResultSet
body: <p>I have to process almost 40k records and pass them to my webservice to push data.Without using Multithreading it is working fine but is taking too much of time which is not acceptable. I am trying to apply multithreading here but the issue is that i can see in the logger that multiple threads are processing same record of resultset(even though i am passing it after doing resultset.next)</p>
  
  <p>I am new to Java Multithreading any help will be appreciated.</p>
  
  <p>This is the thread creation and job assingning  part.</p>
  
  <pre><code> ExecutorService exservice =Executors.newFixedThreadPool(3);
  
  
         while(rs.next()){
  
          exservice.execute(new EmployeeThread(rs,userservice,logger));
  
           }
  
      exservice.shutdown(); 
  </code></pre>