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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6f1d6da490488dc7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-17 19:10:19 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.gbronline.com!news.gbronline.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 17 Dec 2003 21:10:17 -0600 Date: Wed, 17 Dec 2003 22:10:56 -0500 From: Wes Groleau Reply-To: groleau@freeshell.org Organization: Ain't no organization here! User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5.1) Gecko/20031120 X-Accept-Language: en-us, en, es-mx, pt-br, fr-ca MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: A common array References: <3fe0d45e$1@news.barak.net.il> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 69.9.86.54 X-Trace: sv3-zPiQY1HvMyVqax/1z8dKNwPmeILaiXgF8IDrHwlquSbbp15nU0CZma5ffLab2k07NMZfxN3+HJsLftE!WUQ0DNhKUJ8pG5xWAaw/lpIbBMDLmawbXKN3BYBvJYh8WdfXVT5+K/ukfbtbFQtXYy06EVw+CYtn X-Complaints-To: abuse@gbronline.com X-DMCA-Complaints-To: abuse@gbronline.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:3525 Date: 2003-12-17T22:10:56-05:00 List-Id: Stephen Leake wrote: >>I need the tasks to update a common array (1 array for all the >>tasks). do I need keep the array updating in critical section (I >>know that each task will update a differnet cell in the array), if >>so how ? > > Put that common array in yet another task, or in a protected object. Or, make each 'cell' a protected object. But, since each cell has it's own task updating it, maybe the protection is not needed? (As Stephen said, you haven't given enough information.) -- Wes Groleau ----------- I've been framed! ... http://www.useit.com/alertbox/9612.html