Learning ColdFusion 8: CFThread Part I - Data Exchange

<!---
	Launch a new thread and pass in the name of an actress
	as part of the CFThread tag definition.
--->
<cfthread
	action="run"
	name="mythread"
	priority="normal"
 
	<!--- Pass in data attributes. --->
	actress="Christina Cox">
 
	<!---
		Store the value of the passed-in name into this
		thread's publically accessible thread scope.
	--->
	<cfset THREAD.Value = ATTRIBUTES.Actress />
 
</cfthread>
 
 
<!--- Join the thread to the current page process. --->
<cfthread
	action="join"
	name="mythread"
	/>
 
 
<!---
	Now that all of our threads are joined together,
	we can access the name stored in the thread.
--->
#mythread.Value#

For Cut-and-Paste