Class ForkExecutor

java.lang.Object
de.uka.ipd.sdq.simucomframework.fork.ForkExecutor

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

    • 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 Details

    • run

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