/[projects]/dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Lookup.java
ViewVC logotype

Diff of /dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Lookup.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2259 by torben, Mon Feb 9 13:21:39 2015 UTC revision 2260 by torben, Mon Feb 9 14:00:53 2015 UTC
# Line 72  public class Lookup { Line 72  public class Lookup {
72                                                                                                                                                                                                                                    
73                          for (int i =0; i < LookupMain.max_workers; i++) {                          for (int i =0; i < LookupMain.max_workers; i++) {
74                                  LookupWorker worker = new LookupWorker(i, this);                                  LookupWorker worker = new LookupWorker(i, this);
75                                  /*Thread t = new Thread(worker);                                  threadPool.submit(worker);
                                 t.start();  
                                   
                                 workers.put(i, worker);*/  
76                          }                          }
77                                                    
78                          while (threadPool.getActiveCount() > 0) {                          while (threadPool.getActiveCount() > 0 || threadPool.getQueue().isEmpty() == false) {
79                                  Thread.sleep(10);//wait for worker threads                                  Thread.sleep(10);//wait for worker threads
80                          }                          }
81                                                    

Legend:
Removed from v.2259  
changed lines
  Added in v.2260

  ViewVC Help
Powered by ViewVC 1.1.20