comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: help on task types
Date: 1999/03/03
Date: 1999-03-03T00:00:00+00:00	[thread overview]
Message-ID: <7bkb9c$s3n$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 36DD8EBF.EAA@rmcs.cranfield.ac.uk

In article <36DD8EBF.EAA@rmcs.cranfield.ac.uk>,
  coxaw@rmcs.cranfield.ac.uk wrote:
> If I declare a task type that reads input from a file and prints to
> screen
>
> Then instantiate 3 copies of this type
>
> can i tell each one to read from a different file ?
>
> and how is it done ?

Hmmm. This sounds suspiciously like a homework problem.

I know of 3 ways to pass task specific info to such a task.

   o  Make the object a discriminant in the task type declaration.
   o  Pass the object to the task via a rendezvous.
   o  Use a generic package w/ a task instead of a task type, and instantiate
w/ the object.

There are probably more.

T.E.D.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  parent reply	other threads:[~1999-03-03  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-03  0:00 help on task types coxaw
1999-03-03  0:00 ` Steve Folly
1999-03-03  0:00 ` dennison [this message]
1999-03-03  0:00 ` Stephen Leake
replies disabled

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