Re: Maximum number of threads

2015-09-24 Thread Jonathan M Davis via Digitalmars-d-learn
gt; - on my linux machine the maximum number is 32192. > The numbers are quite fixed, however there were some small > fluctuations on the linux machine. > > The questions still remains: how do I know, what maximum number > of threads I can have? Is it possible to calculate this val

Re: Maximum number of threads

2015-09-24 Thread Marc Schütz via Digitalmars-d-learn
bers are quite fixed, however there were some small fluctuations on the linux machine. The questions still remains: how do I know, what maximum number of threads I can have? Is it possible to calculate this value during runtime of my program? The two machines I have available for testing are

Re: Maximum number of threads

2015-09-24 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Thursday, 24 September 2015 at 08:55:25 UTC, Alex wrote: - on my mac I can have 2048 threads spawned at the same time - on my linux machine the maximum number is 32192. The numbers are quite fixed, however there were some small fluctuations on the linux machine. I only know of `cat

Maximum number of threads

2015-09-24 Thread Alex via Digitalmars-d-learn
uations on the linux machine. The questions still remains: how do I know, what maximum number of threads I can have? Is it possible to calculate this value during runtime of my program? The two machines I have available for testing are very different, what is the main parameter which controls th

Re: Maximum number of threads

2015-09-24 Thread Temtaime via Digitalmars-d-learn
Offtop: i think if number of threads > number of real cores, than there's something wrong with your design. Maybe fibers suit better ?

Re: Maximum number of threads

2015-09-24 Thread Alex via Digitalmars-d-learn
On Thursday, 24 September 2015 at 12:38:41 UTC, Temtaime wrote: Offtop: i think if number of threads > number of real cores, than there's something wrong with your design. Maybe fibers suit better ? Well... you got my idea :) So it is not so far offtop, as you think ))) Fibers DO suit better

Re: Maximum number of threads

2015-09-24 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, September 24, 2015 12:38:39 Temtaime via Digitalmars-d-learn wrote: > Offtop: i think if number of threads > number of real cores, than > there's something wrong with your design. Maybe fibers suit > better ? That depends on what the threads are doing. If they're all CPU-intensive,

Maximum Number of Threads?

2011-02-06 Thread d coder
Greetings Is there a limit on the maximum number of threads that can be spawned? Or does it just depend on the value in /proc/sys/kernel/threads-max on a linux system? Regards - Cherry

Re: Maximum Number of Threads?

2011-02-06 Thread Jonathan M Davis
On Sunday 06 February 2011 05:05:24 d coder wrote: Greetings Is there a limit on the maximum number of threads that can be spawned? Or does it just depend on the value in /proc/sys/kernel/threads-max on a linux system? Barring any bugs which manage to keep threads alive too long, it's