クラスjava.util.concurrent.ForkJoinPool
の使用
-
ForkJoinPoolを使用するパッケージ パッケージ 説明 java.util.concurrent 並行プログラミングでよく使用されるユーティリティ・クラスです。 -
-
java.util.concurrentでのForkJoinPoolの使用
ForkJoinPoolを返すjava.util.concurrentのメソッド 修飾子と型 メソッド 説明 static ForkJoinPool
ForkJoinPool. commonPool()
共通プール・インスタンスを返します。static ForkJoinPool
ForkJoinTask. getPool()
現在のスレッドをホストするプールを返します。現在のスレッドがForkJoinPoolの外部で実行されている場合はnull
を返します。ForkJoinPool
ForkJoinWorkerThread. getPool()
このスレッドをホストしているプールを返します。ForkJoinPool型のパラメータを持つjava.util.concurrentのメソッド 修飾子と型 メソッド 説明 ForkJoinWorkerThread
ForkJoinPool.ForkJoinWorkerThreadFactory. newThread(ForkJoinPool pool)
指定されたプール内で動作している新しいワーカー・スレッドを返します。ForkJoinPool型のパラメータを持つjava.util.concurrentのコンストラクタ コンストラクタ 説明 ForkJoinWorkerThread(ForkJoinPool pool)
指定されたプール内で動作しているForkJoinWorkerThreadを作成します。型ForkJoinPoolの型引数を持つjava.util.concurrentのコンストラクタ・パラメータ コンストラクタ 説明 ForkJoinPool(int parallelism, ForkJoinPool.ForkJoinWorkerThreadFactory factory, Thread.UncaughtExceptionHandler handler, boolean asyncMode, int corePoolSize, int maximumPoolSize, int minimumRunnable, Predicate<? super ForkJoinPool> saturate, long keepAliveTime, TimeUnit unit)
指定されたパラメータを使ってForkJoinPool
を作成します。
-