Boost logo

Boost Users :

Subject: Re: [Boost-users] [coroutine] Is there a max number of coroutines that can be created?
From: Nat Goodspeed (nat_at_[hidden])
Date: 2014-07-11 11:47:30


On Fri, Jul 11, 2014 at 10:41 AM, José <josessantos_at_[hidden]> wrote:

>> I am creating a "lot" of coroutines in my code. When I create more than
>> 32744 coroutines (for this example) the program ends with segmentation fault.
>>
>> So, I would like to known if there is a limit number for active
>> coroutines?

> What operating system are you using?
> Ubuntu 13.10, kernel 3.11.0-18
> Is it 32-bit or 64-bit?
> x86_64
> What compiler and version are you using?
> I tried Boost 1.55 with g++ 4.8.1 and clang++ 3.2
> Are you building 32-bit or 64-bit?
> 64-bit

Perhaps you could try the "segmented stacks" approach ("split stacks")?
http://www.boost.org/doc/libs/1_55_0/libs/coroutine/doc/html/coroutine/stack/segmented_stack.html


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net