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: 103376,16594902ce57591b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!postnews.google.com!l12g2000cwl.googlegroups.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: Multitasking and containers Date: 29 Nov 2006 07:50:12 -0800 Organization: http://groups.google.com Message-ID: <1164815412.496621.201870@l12g2000cwl.googlegroups.com> References: <143yx0dos45nx.159wpxvfevtt8.dlg@40tude.net> <1164623427.5986.11.camel@localhost> <1164656708.657952.123430@j72g2000cwa.googlegroups.com> NNTP-Posting-Host: 66.162.65.129 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1164815416 9381 127.0.0.1 (29 Nov 2006 15:50:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 29 Nov 2006 15:50:16 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: l12g2000cwl.googlegroups.com; posting-host=66.162.65.129; posting-account=Zl1UPAwAAADEsUSm1PMMiDjihtBlZUi_ Xref: g2news2.google.com comp.lang.ada:7741 Date: 2006-11-29T07:50:12-08:00 List-Id: 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.