Interface ArrayThreadPoolContext

All Superinterfaces:
Context
All Known Implementing Classes:
DefaultContext

public interface ArrayThreadPoolContext extends Context

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 Details

    • getThreadPoolFactory

      ThreadPoolFactory getThreadPoolFactory()
      Returns the thread pool factory that should be used for multithreading parallel processing AlgArt arrays.
      Returns:
      the desired thread pool factory.