September 06, 2008
For ColdFusion hosting try HostMySite.com. |
Home /
Groups /
ColdFusion Talk (CF-Talk)
terminating cfthread
HiRichard White 05/17/08 05:15 A > when using cfthread, when it has finished doing its job andDave Watts 05/17/08 10:49 A >I'm not exactly sure how CF works with these threads, but I wouldn't beRichard White 05/17/08 05:01 P > thanks dave, the reason i say it appears as if they areDave Watts 05/17/08 05:54 P ok thanks ill do thatRichard White 05/17/08 07:46 P 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 > 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/ >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!!! ----- 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/ ok thanks ill do that ----- Excess quoted text cut - see Original Post for more -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||