Hi All,
Can someone explain with example , the difference between for each and parallel for each activities.
Thanks in Advance
Hi All,
Can someone explain with example , the difference between for each and parallel for each activities.
Thanks in Advance
Hi,
ForEach runs sequential for item of the collection.
ParallelForEach runs pseudo -parallel for item of the collection.
The following images are the sample.(Check each output)
ForEach
Parallel ForEach
Please note that Parallel ForEach is not real parallel.
Regards
Foreach ==> It runs activities sequentially e.g. if a process waits a file to be downloaded from a browser, it will wait and will not run any other activity in that idle time.
ParallelFroEach ==> it also runs activities sequentially but if an activity is waiting to be completed and is idle so the ParallelForEach will use that idle time to run activities above it.
e.g. if you have an ParallelForEach activity and in that activity you have 3 more activities.
Activity # 1
Activity # 2
Activity # 3
if the Activity#2 stays idle(lets say waiting 4 seconds for a file to be downloaded) then the Process will use that 4 seconds to run Activity #1 as many times as it can in that 4 idle seconds.
after that i will run Activity#2 and Activity#3.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.