comp.lang.ada
 help / color / mirror / Atom feed
From: "R. Stegers" <rstegers@cs.vu.nl>
Subject: Re: Parallel Merge Sort
Date: Tue, 26 Feb 2002 21:39:40 +0100
Date: 2002-02-26T21:39:40+01:00	[thread overview]
Message-ID: <a5grtp$ooc$1@star.cs.vu.nl> (raw)
In-Reply-To: 3c780e10.1060331@news.cis.dfn.de

I have to say it's only an academic excercise. We have a course called
'Principles of programming languages'. 5 Assignments in 5 different
languages (Prolog, Perl, Ada, SmallTalk and Gofer) have to be programmed.

As you can see, the 5 languages give an impression of the different language
types (imperative, oo, functional, logical).

The assignment for Ada is to write a parallel merge-sort which can sort a
list of any type.

If you'r interested in my sollution I can email my source to you. It's
working fine now. To make it work for huge lists it has to be adapted. Now
for every split of the list, two new tasks are created while the previously
tasks are suspended. This creates quite a lot of task (threads) which might
be avoided (but that cannot be part of the assignment which stated that a
task should create two new sub-tasks every time the list is split into 2).

Ruud





      reply	other threads:[~2002-02-26 20:39 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
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 [this message]
replies disabled

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