comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier@fakeaddress.nil>
Subject: Re: Weird problem with recursion and tasks
Date: Sun, 03 Dec 2006 09:34:59 +0100
Date: 2006-12-03T09:34:59+01:00	[thread overview]
Message-ID: <45728c18$1_5@news.bluewin.ch> (raw)
In-Reply-To: <1165116074.751484.99560@j44g2000cwa.googlegroups.com>

christopher.orihuela@gmail.com:

> I was implementing a concurrent version of QuickSort (each half in a
> different task) when I realized that sometimes the recursive task
> didn't execute.
> �Could anybody tell me why for values of MaxI > 4 I allways get a
> higer count of A in the following program? Thanks.

The behaviour seems to depend on the compiler...
- With ObjectAda 7.2.2 SE I always get, in debug or release mode:
A:  62
B:  62
- With GNAT GPL 2006 I usually get the same, but also sometimes
A:  62
B:  57
or even down to
A:  60
B:  49
Here my competencies stop, I'm not a specialist in tasks & Co.
Then, is it your compiler or something missing in the code - I cannot decide...
HTH
______________________________________________________________
Gautier         -- http://www.mysunrise.ch/users/gdm/index.htm
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



  reply	other threads:[~2006-12-03  8:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-03  3:21 Weird problem with recursion and tasks christopher.orihuela
2006-12-03  8:34 ` Gautier [this message]
2006-12-03  9:43 ` Dmitry A. Kazakov
2006-12-03 13:56 ` Matthew Heaney
2006-12-05  0:50   ` Craig Carey <research@ijs.co.nz>
2006-12-03 21:10 ` christopher.orihuela
2006-12-04 20:09   ` christopher.orihuela
2006-12-05 11:38     ` Georg Bauhaus
2006-12-05 13:07       ` Dmitry A. Kazakov
2006-12-05 12:03   ` Ludovic Brenta
2006-12-05 12:24     ` Georg Bauhaus
2006-12-05 13:00       ` Ludovic Brenta
2006-12-05 20:37     ` christopher.orihuela
2006-12-05 22:16       ` christopher.orihuela
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox