Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How many threads are too many in one heavyweight process?

Heavyweight process threads
0
Posted

How many threads are too many in one heavyweight process?

0

How many are too many for a single machine? A: The answer, of course, is “it depends”. Presumably, the number of threads you’re considering far outstrips the number of processors you have available, so it’s not really important whether you’re running on uni- or a multiprocessor, and it’s not really important (in this general case) whether the threads implementation has any kernel support (presumably it doesn’t on HP-UX, judging by your post from 14 Feb 1996 14:31:42 -0500). So, it comes down to what these bazillion threads of yours are actually doing. If, for the most part, they just sit there waiting for someone to tickle the other end of a socket connection, then you can probably create LOTS before you hit “too many”. In this case it would depend on how much memory is available to your process, in which to keep all of these sleeping threads (and how much kernel resources are available to create sockets for them ;-). If, on the other hand, every one of these bazillion threads is hamme

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.