Package net.algart.contexts
Interface ArrayThreadPoolContext
- All Superinterfaces:
Context
- All Known Implementing Classes:
DefaultContext
The context informing the module, working with AlgART arrays
,
about the preferred thread pool factory
.
Any module, that need to process AlgART arrays in several parallel threads
to improve performance on the multiprocessor systems,
should request this context to get the preferred
thread pool factory
and use it.
One of examples of using this context is DefaultArrayContext
class,
that can be passed to Arrays.copy(ArrayContext, UpdatableArray, Array)
method.
- Author:
- Daniel Alievsky
-
Method Summary
Modifier and TypeMethodDescriptionReturns thethread pool factory
that should be used for multithreading parallel processing AlgArt arrays.
-
Method Details
-
getThreadPoolFactory
ThreadPoolFactory getThreadPoolFactory()Returns thethread pool factory
that should be used for multithreading parallel processing AlgArt arrays.- Returns:
- the desired thread pool factory.
-