From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bd6afd90718a4783 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: GNAT and large number of threads Date: Fri, 27 Apr 2007 21:45:10 +0300 Message-ID: <59eulmF2jf1p7U1@mid.individual.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net Ol9K8sDkI6smVz866CUBlAhMhFjzAfMH1Z+NHZYrkiFNHRE9c= User-Agent: KNode/0.10.4 Xref: g2news1.google.com comp.lang.ada:15360 Date: 2007-04-27T21:45:10+03:00 List-Id: Wiktor Moskwa wrote: > Hi, > > I'm using GNAT GPL 2006 on Linux x86. > Recently I had a problem with creating large number of tasks(*) in my > Ada program. I create tasks in a loop and when I reach the limit of > stack address space the main thread freezes - no exceptions, nothing. This happened to me in 3.15p for windows long ago, but I suppose it's the same issue. You can have thousands of tasks with a reasonable stack size. I don't know how to know the number in advance, sorry.