comp.lang.ada
 help / color / mirror / Atom feed
* Question about concurrent access to array
@ 2013-02-14 20:39 john
  2013-02-14 21:29 ` Adam Beneschan
  2013-02-14 21:41 ` Niklas Holsti
  0 siblings, 2 replies; 6+ messages in thread
From: john @ 2013-02-14 20:39 UTC (permalink / 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?



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-15  9:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-14 20:39 Question about concurrent access to array john
2013-02-14 21:29 ` 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

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