Ian,
>Here is my simplest test case to date. I seems to show that there is a
>limit, but I really don't know where it might be.
>
><cfloop from="1" to="1500" index="i">
> <cfthread action="run" name="th_#i#" threadID="#i#">
> <cfset thread.foobar = threadID>
> <cfset thread.calc = threadID * randRange(1,10)>
> </cfthread>
></cfloop>
>
><cfthread action="join" name="#structKeyList(cfThread)#" timeout="10000"/>
>
><cfdump var="#cfThread#" format="text" expand="no">
What if you change the above code to:
<cfloop from="1" to="300" index="i">
<cfloop from="1" to="5" index="j">
<cfthread action="run" name="th_#i#"
threadID="#(((i-1)*5)+j)#">
<cfset thread.foobar = threadID>
<cfset thread.calc = threadID * randRange(1,10)>
</cfthread>
</cfloop>
<cfthread action="join" name="#structKeyList(cfThread)#"/>
<cfdump var="#cfthread#" format="text" expand="no"/>
</cfloop>
This should do the exact thing, but it breaks it up to a maximum of 5
threads.
-Dan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308866
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4