Class Parallelizer


  • public class Parallelizer
    extends Object
    This class is used to simplify the parallelization of collaborative filtering algorithms
    • Constructor Detail

      • Parallelizer

        public Parallelizer()
    • Method Detail

      • exec

        public static void exec​(Object[] objects,
                                Partible partible)
        Execs Partible for each object contained in the objects array. Each execution is run in parallel way. All available threads of the CPU will be used.
        Parameters:
        objects - Array of objects to be executed in parallel
        partible - Partible to be executed for each object of the array
      • exec

        public static void exec​(Object[] objects,
                                Partible partible,
                                int numThreads)
        Execs Partible for each object contained in the objects array. Each execution is run in parallel way.
        Parameters:
        objects - Array of objects to be executed in parallel
        partible - Partible to be executed for each object of the array
        numThreads - Number of threads to be launched in parallel