Tabnine Logo
ForkJoinPool.idlePerActive
Code IndexAdd Tabnine to your IDE (free)

How to use
idlePerActive
method
in
jsr166y.ForkJoinPool

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

origin: h2oai/h2o-2

return wt.workQueue.queueSize() - wt.pool.idlePerActive();
origin: org.codehaus.jsr166-mirror/jsr166y

return queueTop - queueBase - pool.idlePerActive();
jsr166yForkJoinPoolidlePerActive

Javadoc

Returns the approximate (non-atomic) number of idle threads per active thread to offset steal queue size for method ForkJoinTask.getSurplusQueuedTaskCount().

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.
  • getPoolSize
    Returns the number of worker threads that have started but not yet terminated. The result returned b
  • idleAwaitWork
    If inactivating worker w has caused pool to become quiescent, check for pool termination, and wait f
  • 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

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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