Difference between revisions of "Join Forked Threads"

From PresenceWiki
Jump to: navigation, search
Line 4: Line 4:
  
 
http://www.international-presence.com/wikidocs/images/join_threads_task.png
 
http://www.international-presence.com/wikidocs/images/join_threads_task.png
 +
 +
The above example uses a while node to create multiple threads on execution path 1. When the while node iteration is complete execution path 2 is executed and the Join Forked Threads node will wait for all threads created in this task to complete before ending the task.
  
 
{{FlowControl}}
 
{{FlowControl}}

Revision as of 13:48, 12 August 2015

http://www.international-presence.com/wikidocs/images/join_node.png

The Join Forked Threads Node blocks Task execution until any threads which have been spawned by the Fork Execution node have finished running. It is not editable and accepts no parameters.

http://www.international-presence.com/wikidocs/images/join_threads_task.png

The above example uses a while node to create multiple threads on execution path 1. When the while node iteration is complete execution path 2 is executed and the Join Forked Threads node will wait for all threads created in this task to complete before ending the task.

Task Elements > Flow Control Task Elements > Join Forked Threads

Schedule Nodes | Decision Point Nodes | Start of Task | End of Task | Error Handler
Throw Exception | Passive Node | Log Entry | Sleep For n Seconds | While Node | Loop Node | Exit Loop Node | |Switch Node
Fork Execution | Join Forked Threads | Start Synch Block | End Synch Block | Event Notification Nodes



Task Elements | Resources