TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Type:
text/plain; charset="iso-8859-1"
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Subject:
From:
"Beard, Frank" <[log in to unmask]>
Date:
Thu, 26 Oct 2000 21:45:42 -0400
MIME-Version:
1.0
X-To:
Stephane Richard <[log in to unmask]>
Reply-To:
"Beard, Frank" <[log in to unmask]>
Parts/Attachments:
text/plain (51 lines)
> Hello again everyone,
>
> I am trying to decide between to different designs that will accomplish
> the same task.  And I was just wondering if it was possible (or even
> recommended) to do.
>
> Here's the situation via an example:
>
> - I wish to have a wrapper object that will manage a linked list of data.

Protected type around a list (any old list will do).
Booch probably already has a protected type queue.

> - I have an object that will need to call upong the Wrapper object's
> methods to insert, delete and manipulate data inside that linked list.

Task

> - I have another object that will need to take the contents of the wrapper
> object's linked list and process them.

Task - sounds like it might overlap some with the task above.

> - Finally I have another object that will need to take the processed
> linked list and send it say to a serial port.

Task

> In essense, I'm assuming I can do this be either declaring 3 dlls for each
> of those objects plus the dll for the wrapper object with the linked list
> making the methods open to the outside world.
>
> Or I can declare a bunch of Tasks that could potentially be a task for
> each of the jobs I need done on the linked lists and execute them
> asynchroneously in a controlled environment.
>
> Only 2 criteria for making this decision.
>
>    1. I would like the most speed possible.
>    2. The most reliable possible.
>
> Which method would you recommend?

Stay platform independent, less complex, easier to maintain, and more
reliable.
Use the Ada tasking model and a protected type.
The tasks will be at least as fast, if not faster, than the DLLs.

My $.02.
Frank

ATOM RSS1 RSS2