comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@btopenworld.com>
Subject: Re: array for all tasks
Date: Sat, 20 Dec 2003 14:37:59 +0000 (UTC)
Date: 2003-12-20T14:37:59+00:00	[thread overview]
Message-ID: <bs1ms7$nu2$1@hercules.btinternet.com> (raw)
In-Reply-To: 3fe43a4c$1@news.barak.net.il

"Ratson Janiv" <janiv@013.net.il> wrote in message
news:3fe43a4c$1@news.barak.net.il...
> Hi,
> I have a task with 3entries.
> The first entry set an array size:
> accept Start(Array_Size:Natural);
> declare
>
> Arr_Checks : Arr2(1..Array_Size);
>
> begin ...
>
> The other 2 tasks need to use this array.
> how do I implement that, so the other tasks will also know and may use the
> array?
> 10x?

Sounds like you need a protected type/object rather than a task to ensure
data protection. Using a task for this sort of thing (while possible, as per
Ada83) is inefficient.





  reply	other threads:[~2003-12-20 14:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-20 12:00 array for all tasks Ratson Janiv
2003-12-20 14:37 ` Martin Dowie [this message]
2003-12-22  9:45 ` Martin Krischik
replies disabled

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