Package anvil.java.lang

Examples of anvil.java.lang.ThreadPool


  {
    context.checkAccess(AnyThreadPool.CAN_USE);
    if (name == null) {
      name = "Pool";
    }
    ThreadPool pool = new ThreadPool(name);
    if (threads > 0) {
      pool.setMaxThreads(threads);
    }
    if (tasks > 0) {
      pool.setMaxTasks(tasks);
    }   
    return new AnyThreadPool(pool);
  }
View Full Code Here

TOP

Related Classes of anvil.java.lang.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.