When doing this, keep an eye on the number of threads you spawn relative to
the thread limit in CF Admin.  The reccomended max thread count is 3 to 5
per processor.  So, if you have a dual core processor, the max thread count
should be 6-10.  You could easily run over this level if you spawn too many
threads.

Andy

_______________________________________________
Andrew Powell
Senior Consultant 
e-mail: [EMAIL PROTECTED]

Universal Mind

p: 770.424.4110
c: 404.384.0166 
f:  678.302.4310
www.universalmind.com
_______________________________________________ 
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nathan Given
Sent: Tuesday, September 12, 2006 11:13 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Spawning threads in Coldfusion: making my
webapp run faster

On 9/8/06, Mischa Uppelschoten ext 10 <[EMAIL PROTECTED]>
wrote:
> As a low-tech solution, could you write a cfm page with frames that calls
other cfm pages in those frames and then cfhttp the "top" page?
> /m

Intriguing idea... :-)

So let's talk about this one... I can create one cfm template that has
multiple iframes in it... each iframe would would essentially be a "thread"
I want to spawn, right?

Furthermore, each iframe would just be another cfm template, but it has code
to go do work (in my case, go find the price of a book), and then save the
information to a database.

When the page is done loading, all the information will be saved to the
database AND, supposedly, this would all run faster because each iframe
would be doing its work at the same time as the other iframes.

Is the logic correct here?  Would the iframes really be doing their work at
the same time?  (Or should I use traditional frames?)

Thoughts?

Thanks!
--
nathan


-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists Archive @
http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------





-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------



Reply via email to