<cfscript> thread name = "one" { sleep( 500 ); thread.lastLineAt = now().timeFormat( "hh:nn:ss" ); } thread name = "two" { sleep( 2500 ); thread.lastLineAt = now().timeFormat( "hh:nn:ss" ); } thread name = "three" { sleep( 4500 ); thread.lastLineAt = now().timeFormat( "hh:nn:ss" ); } // Wait for all threads to complete and then check status. thread action = "join"; dump( var = cfthread.one, show = "Name,ElapsedTime,StartTime,LastLineAt" ); dump( var = cfthread.two, show = "Name,ElapsedTime,StartTime,LastLineAt" ); dump( var = cfthread.three, show = "Name,ElapsedTime,StartTime,LastLineAt" ); // Sleep another few seconds and the re-check the status. sleep( 2000 ); echo( "<hr />" ); dump( var = cfthread.one, show = "Name,ElapsedTime,StartTime,LastLineAt" ); dump( var = cfthread.two, show = "Name,ElapsedTime,StartTime,LastLineAt" ); dump( var = cfthread.three, show = "Name,ElapsedTime,StartTime,LastLineAt" ); </cfscript>