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-Thread: a07f3367d7,904e84d5dc020db1,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.18.199 with SMTP id x7mr1394492qaa.1.1360874343061; Thu, 14 Feb 2013 12:39:03 -0800 (PST) X-Received: by 10.49.95.68 with SMTP id di4mr5300qeb.0.1360874341986; Thu, 14 Feb 2013 12:39:01 -0800 (PST) Path: k2ni33058qap.0!nntp.google.com!t1no463243qaz.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 14 Feb 2013 12:39:01 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.154.18.184; posting-account=nd46uAkAAAB2IU3eJoKQE6q_ACEyvPP_ NNTP-Posting-Host: 82.154.18.184 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <947b0951-54e4-4a4d-bd26-760eb66390c3@googlegroups.com> Subject: Question about concurrent access to array From: john@peppermind.com Injection-Date: Thu, 14 Feb 2013 20:39:03 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2013-02-14T12:39:01-08:00 List-Id: I'd like like several tasks to share an unpacked array of a definite discri= minant record type. 1.) Is this possible? 2.) Do I need any kind of synchronization if I can guarantee that every tas= k can only write and read to a different area (different range of indices) = in the array? Performance matters a lot in this case, which is why I would prefer not to = use a protected object or any other synchronization mechanism. I can't imag= ine how a problem could occur if every task only accesses his own part of t= he array, but perhaps there is still one?