Class ForkExecutor


  • public class ForkExecutor
    extends Object
    Helper to execute a fork action in the PCM. Implements the barrier design pattern.
    • Constructor Detail

      • ForkExecutor

        public ForkExecutor​(SimuComSimProcess parent,
                            ForkedBehaviourProcess[] forks)
        Initialise the barrier with the forks to spawn and the parent process which is continoued when all forks are done
        Parameters:
        parent - The parent simulation thread
        forks - The threads to run in parallel
    • Method Detail

      • run

        public void run()
        Execute the child threads in parallel waiting for them to finish