congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ForkJoinPool.getPoolSize
Code IndexAdd Tabnine to your IDE (free)

How to use
getPoolSize
method
in
jsr166y.ForkJoinPool

Best Java code snippets using jsr166y.ForkJoinPool.getPoolSize (Showing top 3 results out of 315)

origin: h2oai/h2o-2

 @Override public ForkJoinWorkerThread newThread(ForkJoinPool pool) {
  int cap = 4 * NUMCPUS;
  return pool.getPoolSize() <= cap ? new FJWThr(pool) : null;
 }
}
origin: org.codehaus.gpars/gpars

/**
 * Creates the pool wrapping the provided ForkJoinPool
 *
 * @param pool The ForkJoinPool instance to wrap
 */
public FJPool(final ForkJoinPool pool) {
  this.pool = pool;
  this.configuredPoolSize = pool.getPoolSize();
}
origin: org.codehaus.gpars/gpars

/**
 * Retrieves the current thread pool size
 *
 * @return The pool size
 */
@Override
public int getPoolSize() {
  return pool.getPoolSize();
}
jsr166yForkJoinPoolgetPoolSize

Javadoc

Returns the number of worker threads that have started but not yet terminated. The result returned by this method may differ from #getParallelism when threads are created to maintain parallelism when others are cooperatively blocked.

Popular methods of ForkJoinPool

  • invoke
    Performs the given task, returning its result upon completion. If the computation encounters an unch
  • <init>
    Creates a ForkJoinPool with the given parameters.
  • execute
    Arranges for (asynchronous) execution of the given task.
  • addWorker
    Tries to create and start a worker; minimally rolls back counts on failure.
  • checkPermission
    If there is a security manager, makes sure caller has permission to modify threads.
  • deregisterWorker
    Final callback from terminating worker. Removes record of worker from array, and adjusts counts. If
  • getParallelism
    Returns the targeted parallelism level of this pool.
  • idleAwaitWork
    If inactivating worker w has caused pool to become quiescent, check for pool termination, and wait f
  • idlePerActive
    Returns the approximate (non-atomic) number of idle threads per active thread.
  • isTerminated
    Returns true if all tasks have completed following shut down.
  • managedBlock
    Blocks in accord with the given blocker. If the current thread is a ForkJoinWorkerThread, this metho
  • nextWorkerName
    Callback from ForkJoinWorkerThread constructor to assign a public name
  • managedBlock,
  • nextWorkerName,
  • registerWorker,
  • scan,
  • signalWork,
  • tryTerminate,
  • addActiveCount,
  • addQuiescerCount,
  • addSubmission

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Permission (java.security)
    Legacy security code; do not use.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now