# Async Action Group Question

**URL:** https://www.finalbuilder.com/forums/t/async-action-group-question/1029
**Category:** Discussion
**Created:** [November 11, 2008, 2:03am UTC](https://www.finalbuilder.com/forums/t/async-action-group-question/1029 "2008-11-11T02:03:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [November 11, 2008, 2:03am UTC](https://www.finalbuilder.com/forums/t/async-action-group-question/1029/1 "2008-11-11T02:03:33Z")

</div>

Hi,

I think I've found a solution to what I want to do, but I want to make sure it's the best way to do it and that I'm not shooting myself in the foot.

I have a fbp I want to call multiple times asynchronously passing in a paramater I pop off a queue.&nbsp; I added an Async group, under which I've placed 3 Iterate Queue actions.&nbsp; Each of the 3 iterate actions sets a variable MyParam1, MyParam2, and MyParam3.&nbsp; Underneath each iterate, I include my AsyncSub.fbp6 and pass a given MyParamX to it's InputParam.&nbsp; As long as I check the Ignore Failure on each of the iterators, it seems to work fine.&nbsp; So it runs DoStuff up to 3 times concurrently and if I want to increase this, I have to create a new MyParamX and copy paste the Iterator and change it to reference the new MyParamX.&nbsp; There isn't any easier way than this is there?&nbsp;&nbsp; And I'm not going to find this explodes 1 out of 100 times am I?

If my text isn't clear I've attached a sample of what I'm doing.

Thanks!

 [NPW\_AsyncExample.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/e/ec74b5ef1b9fddec20fd4e3f1ac488478abb6530.zip) (5.955 KB)

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 11, 2008, 4:57am UTC](https://www.finalbuilder.com/forums/t/async-action-group-question/1029/2 "2008-11-11T04:57:21Z")

</div>

Hi Nelson   
  
 I had a look at the projects, and they seem to work as expected. Can you tell us what the actual real application of this is?   
  
 It looks to me like you are perhaps trying to speed up processing of a list by using multiple threads? The problem I see with this is that the threads having to serialize the writing the the file will introduce more overhead than running the processing in one thread? Using threads in FinalBuilder is not without penalty, we generally recommend 1 thread per cpu (or core these days), and mix I/O bound tasks with cpu bound.   
  
 HTH

---

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [November 11, 2008, 6:27am UTC](https://www.finalbuilder.com/forums/t/async-action-group-question/1029/3 "2008-11-11T06:27:42Z")

</div>

Hi Vincent,   
  
 The actual problem I’m solving is not writing the same file, but deploying builds to multiple machines simultaneously. I did take note of the help file’s advice regarding I/O and CPU limited operations and threading.   
  
 Thanks!
