House of Fusion
Home of the ColdFusion Community
Hostmysite ColdFusion Hosting

Search cf-talk

September 06, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30         

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition

For ColdFusion hosting try HostMySite.com.
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

terminating cfthread

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi
Richard White
05/17/08 05:15 A
ok thanks ill do that
Richard White
05/17/08 07:46 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
05/17/2008 05:15 AM

Hi when using cfthread, when it has finished doing its job and we no longer need it, do we have to write in our code to destroy / terminate it, or does it automatically do it itself. i have noticed that when some cfthreads are done, it seems to appear as if they are still running in the background thanks

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
05/17/2008 10:49 AM

> when using cfthread, when it has finished doing its job and > we no longer need it, do we have to write in our code to > destroy / terminate it, or does it automatically do it itself. Unless you need the results of the thread to use back in your original thread, you shouldn't have to do anything to kill it. > i have noticed that when some cfthreads are done, it seems to > appear as if they are still running in the background I'm not exactly sure how CF works with these threads, but I wouldn't be surprised if they're pooled just like CF's regular threads - a set number are created at startup, and none are created or destroyed at runtime. So, all of them should be "running in the background", but they should be doing very little until used. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
05/17/2008 05:01 PM

>I'm not exactly sure how CF works with these threads, but I wouldn't be >surprised if they're pooled just like CF's regular threads - a set number >are created at startup, and none are created or destroyed at runtime. So, >all of them should be "running in the background", but they should be doing >very little until used. thanks dave, the reason i say it appears as if they are running in the background is because when i run the page and the threads are being started and processing, i notice my jrun processing shooting right up, which is fine, the threads are then joined, their data merged and the page loads - at this point the threads should have finished. jrun memory goes right down but my testing server is extremely slow as if it is doing something in the background. i notice though at this point that the page file usage shoots right up. so basically im not sure what is going on!!!

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
05/17/2008 05:54 PM

----- Excess quoted text cut - see Original Post for more ----- If you have Enterprise or Developer, you should take a look at it in the server monitor. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group

<< Previous Thread Today's Threads Next Thread >>

Mailing Lists