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?
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.