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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d3ac444cc1efa302 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-26 11:00:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread4.news.pas.earthlink.net.POSTED!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Penalty of calling a protected operation or task-entry. References: <8cGcb.25659$os2.355577@news2.e.nsc.no> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 26 Sep 2003 18:00:08 GMT NNTP-Posting-Host: 63.184.105.179 X-Complaints-To: abuse@earthlink.net X-Trace: newsread4.news.pas.earthlink.net 1064599208 63.184.105.179 (Fri, 26 Sep 2003 11:00:08 PDT) NNTP-Posting-Date: Fri, 26 Sep 2003 11:00:08 PDT Xref: archiver1.google.com comp.lang.ada:43007 Date: 2003-09-26T18:00:08+00:00 List-Id: Steve wrote: > Make the read operations use protected functions, they can happen > concurrently (see: LRM 9.5.1). You will still have some penalty for > protected procedures since they are mutually exclusive. The OP referred specifically to GNAT 3.15p. IIRC, all protected operations obtain a mutex before proceeding in the GNAT implementation, so GNAT does not use this approach. -- Jeff Carter "Death awaits you all, with nasty, big, pointy teeth!" Monty Python & the Holy Grail 20