comp.lang.ada
 help / color / mirror / Atom feed
From: "Pat Rogers" <progers@classwide.com>
Subject: Re: Parallel Merge Sort
Date: Fri, 15 Feb 2002 21:46:54 GMT
Date: 2002-02-15T21:46:54+00:00	[thread overview]
Message-ID: <ilfb8.49426$O06.2901572634@newssvr30.news.prodigy.com> (raw)
In-Reply-To: a4juvf$67t$1@star.cs.vu.nl

"R. Stegers" <rstegers@cs.vu.nl> wrote in message
news:a4juvf$67t$1@star.cs.vu.nl...
> I want to create a generic package which can sort an array with any type of
> elements. The index is of the integer type. It is also required that the
> merge sort is performed in parallel. I'm a C/C++-programmer with very
> limited Ada experience. I think I got the idea of tasks/rendevous right. I
> run into some problems here:
>
>  - How can I dynamicaly allocate a temporary array (for which i don't know
> the size in advance?) It seems inpossible to me.
>  - How to create tasks from within a task: The subTask1 en subTask2
> declarations generate errors: "Task type cannot be used as type mark within
> its own body"
>
> I hope someone can give me a hint. The code is below.

Hint: there is a well-known book on concurrent programming in Ada (:-) that
shows how to do this.....





  reply	other threads:[~2002-02-15 21:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-15 21:34 Parallel Merge Sort R. Stegers
2002-02-15 21:46 ` Pat Rogers [this message]
2002-02-19  6:16   ` Adrian Hoe
2002-02-19  6:21   ` Adrian Hoe
2002-02-15 23:02 ` tmoran
2002-02-16 11:09   ` R. Stegers
2002-02-18 10:22     ` Peter Hermann
2002-02-18 20:41       ` R. Stegers
2002-02-18 21:02   ` R. Stegers
2002-02-18 22:29     ` Jeffrey Carter
2002-02-18 22:55     ` tmoran
2002-02-19 21:46   ` Kenneth Almquist
2002-02-24  3:22 ` Nick Roberts
2002-02-26 20:39   ` R. Stegers
replies disabled

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