ColdFusion CFThread Body Context Exploration

<!---
	Put in page title to make sure this content does
	not get cleared from buffer.
--->
<h1>
	ColdFusion 8 CFThread Testing
</h1>
 
 
 
<!--- Launch asynchronous thread. --->
<cfthread
	action="run"
	name="thread1">
 
	<h2>
		CFThread 1 Body Content
	</h2>
 
	<p>
		This is coming from thread 1.
	</p>
 
</cfthread>
 
 
<!--- Wait for thread 1 to re-join current page. --->
<cfthread
	action="join"
	name="thread1"
	/>
 
<!--- Dump out thread content. --->
<cfdump
	var="#CFTHREAD.Thread1#"
	label="Thread1 Data"
	/>
 
 
 
<!--- Sleep for 2 second between the two threads. --->
<cfthread
	action="sleep"
	duration="#(2 * 1000)#"
	/>
 
 
 
<!--- Launch asynchronous thread. --->
<cfthread
	action="run"
	name="thread2">
 
	<h2>
		CFThread 2 Body Content
	</h2>
 
	<p>
		This is coming from thread 2.
	</p>
 
	<!--- Clear content. --->
	<cfcontent reset="true" />
 
	<!--- Store the start time of the current page context. --->
	<cfset THREAD.ContextStartTime =
		GetPageContext().GetFusionContext().GetStartTime()
		/>
 
</cfthread>
 
 
<!--- Wait for thread 2 to re-join current page. --->
<cfthread
	action="join"
	name="thread2"
	/>
 
<!--- Dump out thread content. --->
<cfdump
	var="#CFTHREAD.Thread2#"
	label="Thread2 Data"
	/>

For Cut-and-Paste