-
Threads (1 messages)
- Posted by: Deepak Kumar
- Posted on: April 18 2007 09:18 EDT
wuts the maximumand minimum number of threads we can use? for eg: if we want that same process should happen 10 times simutaneously than wut should be the max. and min. number of threads we can use?Threaded Messages (1)
- Re: Threads by Steven Murray on April 20 2007 13:13 EDT
-
Re: Threads[ Go to top ]
- Posted by: Steven Murray
- Posted on: April 20 2007 13:13 EDT
- in response to Deepak Kumar
First think thread pools. Try something like http://jakarta.apache.org/commons/sandbox/threadpool/. I could probally find the answer but that is not the real answer. It depends on the application, the type of server, number of processors, memory, etc. Start with a thread pool model, write your application, do some testing. The problem you will have is not how many threads you can run but if you need to scale across multiple machines, then its a whole new ballgame.