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,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Multitasking and containers Date: Fri, 24 Nov 2006 09:51:24 +0100 Organization: CERN News Message-ID: NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Trace: cernne03.cern.ch 1164358285 26476 137.138.37.241 (24 Nov 2006 08:51:25 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Fri, 24 Nov 2006 08:51:25 +0000 (UTC) User-Agent: Thunderbird 1.5.0.8 (X11/20061113) Xref: g2news2.google.com comp.lang.ada:7678 Date: 2006-11-24T09:51:24+01:00 List-Id: Hi, Paragraph 3 in Annex A says that it's OK to call any standard subprogram from concurrent tasks as long as the parameters do not overlap. John Barnes ("Progamming in Ada 2005") suggests that in order to (for example) read from the same container, the operations need to be protected "by using the normal techniques such as protected objects". But reading from the protected object is not mutually exclusive (many readers are allowed) - so where's the gain? What's the difference between concurrent reads of, say, a Vector via protected object vs. direct access? -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/