[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ProgSoc] Java threads
> On a Java note, I have a function that calls multiple threads. The problem
> is that there could easily be 5000+ threads in use at any one time. What
> methods are available to tell when there are sufficent system resources to
> permit an extra thread, or to put it another way, how do I know when the
> system is incapable of supporting another thread (apart from the
> program/system falling over)?
It depends on how the threads are implemented. For example if the are mapped
to Linux kernel threads, you will run into the maximum process limit
(each thread takes up a task slot).
On the other hand, user space threads are multiplexed by a userspace
library to one/many kernel threads.
When you require this many threads, it might be worth rethinking the
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to email@example.com.
If you are having trouble, ask firstname.lastname@example.org for help.
This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>