Originally posted by Ramalingam Vijayakumar:
In your answer do you mean that my server should be dedicated only to that process which is having 100 threads...
Not necessarily. 100 threads won't bring a decent server to its knees.
I also have onbe doubt ...if I have 100 threads in a process how is the CPU scheduling being done..
The general answer is: "unspecified". The
Java language specification does not prescribe any threading implementation. Having said that, these days you can generally expect time-sliced pre-emptive threading. The precise implementation would depend on the operating system (on a Linux kernel, your server would look quite spectacular in "top").
- Peter