Example #1
0
    public void run() {
      while (Thread.currentThread() == thread) {
        con.run();
        count++;
        con = null;

        if (count > 200 || threadpool.size() > 20) return;

        synchronized (this) {
          releaseRunner(this);
          try {
            wait();
          } catch (InterruptedException ir) {
            Thread.currentThread().interrupt();
          }
        }
      }
    }