Package edu.cmu.tetrad.util
Class TaskRunner<T>
java.lang.Object
edu.cmu.tetrad.util.TaskRunner<T>
- Type Parameters:
T
- the type of the result of the tasks
This class is for running a list of tasks that implement Callable.
Feb 23, 2024 8:41:11 PM
- Author:
- Kevin V. Bui (kvb2univpitt@gmail.com)
-
Constructor Summary
ConstructorsConstructorDescriptionThis class is responsible for running a list of tasks that implement the Callable interface in parallel using multiple threads.TaskRunner
(int numOfThreads) Initializes a TaskRunner with the specified number of threads. -
Method Summary
-
Constructor Details
-
TaskRunner
public TaskRunner()This class is responsible for running a list of tasks that implement the Callable interface in parallel using multiple threads. -
TaskRunner
public TaskRunner(int numOfThreads) Initializes a TaskRunner with the specified number of threads.- Parameters:
numOfThreads
- the number of threads to be used by the TaskRunner
-
-
Method Details
-
run
-