comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <groleau@freeshell.org>
Subject: Re: A common array
Date: Wed, 17 Dec 2003 22:10:56 -0500
Date: 2003-12-17T22:10:56-05:00	[thread overview]
Message-ID: <RvidnZMSjN8Hh3yiRVn-sQ@gbronline.com> (raw)
In-Reply-To: <mailman.135.1071714340.31149.comp.lang.ada@ada-france.org>

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




  reply	other threads:[~2003-12-18  3:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-17 22:08 A common array Ratson Janiv
2003-12-18  2:25 ` Stephen Leake
2003-12-18  3:10   ` Wes Groleau [this message]
2003-12-19 15:13     ` Mr. J.
2003-12-20  3:23       ` Wes Groleau
2003-12-19 15:10 ` Ratson Janiv
2003-12-20  9:24 ` Ratson Janiv
2003-12-20 18:06   ` Robert I. Eachus
2003-12-20 18:56 ` @Fill(NOSPAM)YourBrain.com
replies disabled

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