Class PiParallel.ThreadLimitedOperation<T>

    • Constructor Detail

      • ThreadLimitedOperation

        public ThreadLimitedOperation​(Operation<T> operation,
                                      int numberOfProcessors)
        Wrap an existing operation to a thread limited context.
        operation - The operation whose execution will have a limited number of threads available.
        numberOfProcessors - The maximum number of threads that can be used in the execution.
    • Method Detail

      • execute

        public T execute()
        Execute the operation.
        Specified by:
        execute in interface Operation<T>
        Result of the operation.