comp.lang.ada
 help / color / mirror / Atom feed
From: Adrian Hoe <byhoe@greenlime.com>
Subject: Re: Parallel Merge Sort
Date: Tue, 19 Feb 2002 14:21:44 +0800
Date: 2002-02-19T14:21:44+08:00	[thread overview]
Message-ID: <3C71EEF8.FD25035D@greenlime.com> (raw)
In-Reply-To: ilfb8.49426$O06.2901572634@newssvr30.news.prodigy.com

Pat Rogers wrote:
> 
> "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.....

Alan Burns and Andy Welling's Concurrency in Ada, 1995, Cambridge
University Press.

This is an excellent book for concurrent programming in Ada.
-- 
                              -- Adrian Hoe
                              -- http://greenlime.com/users/adrian.hoe



  parent reply	other threads:[~2002-02-19  6:21 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
2002-02-19  6:16   ` Adrian Hoe
2002-02-19  6:21   ` Adrian Hoe [this message]
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