Package org.jgroups.util

Examples of org.jgroups.util.ThreadPool


    }

   

    public static void main(String[] args) {
  ThreadPool      pool=new ThreadPool(5);
  ReusableThread  t;
  MyThread        my=new MyThread(1);
  int             i=0;

  while(true) {
      t=pool.getThread();
      my.num=i++;

      if(t != null) {
    System.out.println("Assigning task");
    t.assignTask(my);
View Full Code Here

TOP

Related Classes of org.jgroups.util.ThreadPool

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.