From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: question about tasks, multithreading and multi-cpu machines
Date: Tue, 14 Mar 2006 19:49:50 +0100
Date: 2006-03-14T19:49:50+01:00 [thread overview]
Message-ID: <1451046.YBljpzBlfF@linux1.krischik.com> (raw)
In-Reply-To: dv6qsd$lg0$00$1@news.t-online.com
Norbert Caspari wrote:
> If I run such a program on a multi-cpu machine, the process itself will
> use only one cpu, even though I create several "tasks".
That's not a (missing) language feature it's a GNAT bug. Or prephaps not a
bug as such. See down below.
> I tested this with gnat v3.15p under HPUX 11 on a multi-cpu server.
When the GNAT compiler is compiled a specific thread can be activated. The
default for GNAT is "--enable-thread=gnat". This tread model has the
advantage that it is compatible with all gcc target operating systems. But
it won't have all the features available.
If you where a paying AdaCore customer you could just file an error report
at AdaCore and you would probably get a new compiler with a better thread
model activated pretty soon.
But since you use 3.15p I guess you are not a paying customer and here come
the bitter news: You have to to it yourself. That is: you need to get the
gcc sources (i.e from http://gnuada.sf.net) and compile your own compiler.
For unix systems I would suggest "--enable-theads=posix".
If you are successful: how about uploading the finshed compiler to The GNU
Ada Project?
Martin
--
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com
next prev parent reply other threads:[~2006-03-14 18:49 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-14 16:26 question about tasks, multithreading and multi-cpu machines Norbert Caspari
2006-03-14 16:51 ` Pascal Obry
2006-03-16 4:27 ` Norbert Caspari
2006-03-16 10:04 ` Alex R. Mosteo
2006-03-14 17:18 ` Jean-Pierre Rosen
2006-03-16 4:22 ` Norbert Caspari
2006-03-16 6:58 ` Jean-Pierre Rosen
2006-03-14 18:49 ` Martin Krischik [this message]
2006-03-14 18:56 ` tmoran
2006-03-14 23:01 ` Jeffrey Creem
2006-03-15 1:15 ` Jeffrey R. Carter
2006-03-16 8:06 ` Maciej Sobczak
2006-03-16 10:23 ` Ole-Hjalmar Kristensen
2006-03-16 12:59 ` Dmitry A. Kazakov
2006-03-16 15:11 ` Larry Kilgallen
2006-03-16 15:50 ` Maciej Sobczak
2006-03-16 18:03 ` Jean-Pierre Rosen
2006-03-16 20:06 ` Dr. Adrian Wrigley
2006-03-17 3:26 ` Randy Brukardt
2006-03-16 20:06 ` Jeffrey R. Carter
2006-03-17 8:22 ` Maciej Sobczak
2006-03-17 11:36 ` Dmitry A. Kazakov
2006-03-17 14:23 ` Maciej Sobczak
2006-03-17 19:10 ` Dmitry A. Kazakov
2006-03-17 19:42 ` Jeffrey R. Carter
2006-03-18 0:27 ` tmoran
2006-03-25 21:28 ` Robert A Duff
[not found] ` <43gb22h4811ojjh308r2lqf5qqrujijjok@4ax.com>
2006-03-26 0:44 ` Robert A Duff
2006-03-15 6:46 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox