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
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
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
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
Offtop: i think if number of threads > number of real cores, than
there's something wrong with your design. Maybe fibers suit
better ?
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
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,
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
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