Class ForkExecutor
java.lang.Object
de.uka.ipd.sdq.simucomframework.fork.ForkExecutor
Helper to execute a fork action in the PCM. Implements the barrier design pattern.
-
Constructor Summary
ConstructorDescriptionForkExecutor
(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
Modifier and TypeMethodDescriptionvoid
run()
Execute the child threads in parallel waiting for them to finish
-
Constructor Details
-
ForkExecutor
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
-
-
Method Details
-
run
public void run()Execute the child threads in parallel waiting for them to finish
-