From: Stefan Bellon <sbellon@sbellon.de>
Subject: Re: GNAT and large number of threads
Date: Fri, 27 Apr 2007 07:46:42 +0200
Date: 2007-04-27T07:46:42+02:00 [thread overview]
Message-ID: <20070427074642.1bfe3525@cube.tz.axivion.com> (raw)
In-Reply-To: 1177631815.809213.197820@t38g2000prd.googlegroups.com
Gene wrote:
> On Apr 26, 6:50 pm, Wiktor Moskwa <wiktorDOTmos...@gmail.com> wrote:
> > 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.
I made the same observation with GNAT Pro 6.0.1 on x86 GNU/Linux. See
posting <20070418201307.18a85fd9@cube.tz.axivion.com> where I still
thought it's just an effect of context switching eating up all the
time. Later on I noticed that from a certain number of tasks on,
nothing happens anymore at all.
> If you need to exploit an MP environment, then use a task pool of N
> tasks for N processors.
Is there a way of finding out the number of available processors in Ada
(or GNAT) that works at least on GNU/Linux, Windows, and Solaris?
--
Stefan Bellon
next prev parent reply other threads:[~2007-04-27 5:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-26 22:50 GNAT and large number of threads Wiktor Moskwa
2007-04-26 23:56 ` Gene
2007-04-27 5:46 ` Stefan Bellon [this message]
2007-04-27 15:39 ` Wiktor Moskwa
2007-04-27 4:49 ` Jeffrey R. Carter
2007-04-27 14:52 ` Wiktor Moskwa
2007-04-27 18:45 ` Alex R. Mosteo
2007-04-27 18:51 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox