From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,854fe8372d0921a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-20 06:38:02 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!proxad.net!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!btnet-peer1!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: array for all tasks Date: Sat, 20 Dec 2003 14:37:59 +0000 (UTC) Organization: BT Openworld Message-ID: References: <3fe43a4c$1@news.barak.net.il> NNTP-Posting-Host: host81-129-41-199.in-addr.btopenworld.com X-Trace: hercules.btinternet.com 1071931079 24514 81.129.41.199 (20 Dec 2003 14:37:59 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sat, 20 Dec 2003 14:37:59 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:3628 Date: 2003-12-20T14:37:59+00:00 List-Id: "Ratson Janiv" 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.