Adobe Dreamweaver Forums



Last 10 THreads :         Newbie problem please help ... (Last Post : kglad - Replies : 1 - Views : 2 )           »          slices (Last Post : pixlor - Replies : 4 - Views : 5 )           »          text justification (Last Post : John Waller - Replies : 4 - Views : 5 )           »          Custom Buttons in WebHelp Skin (Last Post : Peter Grainge - Replies : 3 - Views : 4 )           »          formatting external text file as html when loading atextField (Last Post : kglad - Replies : 1 - Views : 2 )           »          Change text color on page load (Last Post : kglad - Replies : 1 - Views : 2 )           »          A New Joke Website (Last Post : BKBK - Replies : 1 - Views : 4 )           »          Release Key check (Last Post : kglad - Replies : 1 - Views : 2 )           »          website search term code (Last Post : Michael Evangelista - Replies : 1 - Views : 2 )           »          Basic question on how to change menu text in this FLAfile (Last Post : michael- - Replies : 3 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Cold Fusion > Advanced Techniques
 
Tags:



Reply
  #1 (permalink)  
Old 10-10-2008, 04:58 PM
SpiderFromMars
 
Posts: n/a
Diggs:
Default Re: Threads when they are done

When I terminate a thread in this manner to kill runaway thread:

<cfloop list="#t#" index="i">
<cfif findNoCase('RUNNING', evaluate('#i#.status')) gt 0>
<cfsilent> <cfthread action="terminate" name="#i#"
/> </cfsilent>
</cfif>
</cfloop>

Each thread that is terminated gets logged in the application log of the CF
administrator.

How do I keep this from getting logged?



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-10-2008, 11:13 PM
Adam Cameron
 
Posts: n/a
Diggs:
Default Re: Threads when they are done

> How do I keep this from getting logged?

Write your code so the threads finish gracefully, without you having to
kill them?

-- or --

If you have to kill these runaway threads... why is it a problem that their
death gets logged?

--
Adam
Reply With Quote
  #3 (permalink)  
Old 10-11-2008, 03:45 AM
SpiderFromMars
 
Posts: n/a
Diggs:
Default Re: Threads when they are done

>> How do I keep this from getting logged?

>Write your code so the threads finish gracefully, without you having to
>kill them?



The thread is very simple. Only a few lines of code and it finishes just fine.
But, because of the nature of application, about a hundred threads are spawned
and the garabage collector normally kills all of them by the time the join is
completed. However, sometimes some of those threads hang around for no apparent
reason. So, after the threading has been completed, then I would like to check
to make sure they have been freed up so they are available for other requests.


-- or --

>If you have to kill these runaway threads... why is it a problem that their
>death gets logged?



Because killing a thread should not be considered an application error.

Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:20 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk