comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Heaney" <mheaney@on2.com>
Subject: Re: Multitasking and containers
Date: 29 Nov 2006 07:50:12 -0800
Date: 2006-11-29T07:50:12-08:00	[thread overview]
Message-ID: <1164815412.496621.201870@l12g2000cwl.googlegroups.com> (raw)
In-Reply-To: <ekjmib$qlt$1@cernne03.cern.ch>


Maciej Sobczak wrote:
> And that's absolutely a non-issue. I'm interested in principles and
> rationale - a clear understanding of the tools is crucial at the very
> early stages of project development, because it's when the decisions
> have the biggest impact on later phases.

The rule about synchronizing access to operations declared in the
predefined library is an old rule.  It was true in Ada83 when using
Text_IO.  There are no new issues here.


> What I've learned in this thread is that:
> 1. Ada standard containers should be protected against concurrent
> accesses (in the general meaning of "access") and it's the obligation of
> the user to do it.

Yes, the same as for any other unit in the predefined library.  (Do
note that monitor-style synchronization of container calls is allowed,
since the operations in the container library are not "potentially
blocking" calls.)


> 2. This serializes all users of the container with obvious consequences.

Well the consequences aren't so obvious to me!  I have no idea what
you're talking about, especially since you claimed above that
synchronization was a "non-issue" for you.


> Whether any of these two is a problem in any particular project is a
> non-issue. The point is that these two facts are to be understood, so
> that they can be taken into account when there's a time to do so.

Yes, you have to synchronize access to a units in the predefined
library.  That fact certainly needs to be understood.




  reply	other threads:[~2006-11-29 15:50 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-24  8:51 Multitasking and containers Maciej Sobczak
2006-11-24 10:11 ` Georg Bauhaus
2006-11-24 10:19 ` Dmitry A. Kazakov
2006-11-24 10:35   ` Maciej Sobczak
2006-11-24 11:14     ` Dmitry A. Kazakov
2006-11-24 12:13       ` Matthew Heaney
2006-11-27  4:17         ` Jeffrey R. Carter
2006-11-27 10:30           ` Georg Bauhaus
2006-11-27 18:41             ` Jeffrey R. Carter
2006-11-27 18:57               ` Dmitry A. Kazakov
2006-11-27 19:45               ` Matthew Heaney
2006-11-27 21:15                 ` Simon Wright
2006-11-28  1:43                 ` Dr. Adrian Wrigley
2006-11-28  2:19                   ` Matthew Heaney
2006-11-28  8:50                     ` Dmitry A. Kazakov
2006-11-28 10:31                       ` Georg Bauhaus
2006-11-28 11:24                         ` Dmitry A. Kazakov
2006-11-29  8:51                           ` Georg Bauhaus
2006-11-28 17:12                       ` Matthew Heaney
2006-11-28 18:21                         ` Dmitry A. Kazakov
2006-11-28 19:17                           ` Matthew Heaney
2006-11-29 18:43                             ` Dmitry A. Kazakov
2006-11-29 10:14                       ` Maciej Sobczak
2006-11-29 15:50                         ` Matthew Heaney [this message]
2006-11-24 12:12     ` Matthew Heaney
2006-11-24 12:05   ` Matthew Heaney
2006-11-24 12:02 ` Matthew Heaney
replies disabled

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