Hi am vijay,
Please look at my following code....
      private static final int NTHREDS = 10;
      ExecutorService executor = Executors.newFixedThreadPool(NTHREDS);
      while(rs.next()){
                webLink=rs.getString(1);
                FirstName=rs.getString(2);
                MiddleName=rs.getString(3);
                Runnable worker = new MyRunnable();// this interface has run method....
                executor.execute(worker); 
 
       }
In this part if the resultset(**rs**) having 100 records excutor creating 100 threads..... I need to run this process with in 10 threads. I need your help to know how to get control of threads.. If any thread has completed its task then it should process the immediate available task from the Result Set. Is it possible to achieve using executor framework.

Thanks...
Vijay365