comp.lang.ada
 help / color / mirror / Atom feed
From: john@peppermind.com
Subject: Question about concurrent access to array
Date: Thu, 14 Feb 2013 12:39:01 -0800 (PST)
Date: 2013-02-14T12:39:01-08:00	[thread overview]
Message-ID: <947b0951-54e4-4a4d-bd26-760eb66390c3@googlegroups.com> (raw)

I'd like like several tasks to share an unpacked array of a definite discriminant record type.

1.) Is this possible?

2.) Do I need any kind of synchronization if I can guarantee that every task 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 imagine how a problem could occur if every task only accesses his own part of the array, but perhaps there is still one?



             reply	other threads:[~2013-02-14 20:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 20:39 john [this message]
2013-02-14 21:29 ` Question about concurrent access to array Adam Beneschan
2013-02-14 21:53   ` Robert A Duff
2013-02-14 23:31     ` Adam Beneschan
2013-02-15  9:11       ` cjpsimon
2013-02-14 21:41 ` Niklas Holsti
replies disabled

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