Page 1 of 1

Threads

Posted: Fri Mar 30, 2007 8:01 pm
by GeXus
Would you say that you can ever have too many threads? Is there like a number that one should avoid going over for performance sake? or is it ok to have thousands of created threads.

Posted: Fri Mar 30, 2007 9:34 pm
by Kieran Huggins
maybe fastCGI would help?

Posted: Sat Mar 31, 2007 4:17 pm
by GeXus
huh?

Posted: Sat Mar 31, 2007 4:24 pm
by Kieran Huggins

Posted: Mon Apr 02, 2007 4:35 pm
by GeXus
My question was if it is ok to have thousands of threads...

Posted: Tue Apr 03, 2007 12:48 am
by Kieran Huggins
Thousands is a tad high. If you're on shared hosting you won't be for long.

Read about fastCGI and it will explain the pitfalls of many threads and offer you a solution.

Posted: Tue Apr 03, 2007 1:08 am
by Christopher
If you have the CPU and memory, then more threads or processes can be a good thing. But at some point you will start pushing against the performance tradeoffs of the OS in its scheduler. I would recommend doing some research on where those limits are.

Re: Threads

Posted: Tue Apr 03, 2007 12:14 pm
by veridicus
GeXus wrote:Is there like a number that one should avoid going over for performance sake?
A gazillion. :wink:

It's very dependent on the OS and hardware. If you can't find any hard numbers for your configuration on the net then it's best to create a test and find out the hard way.