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 Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Execute the child threads in parallel waiting for them to finish
-
-
-
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 threadforks
- The threads to run in parallel
-
-