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,FREEMAIL_FROM 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-25 19:59:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc02.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <8cGcb.25659$os2.355577@news2.e.nsc.no> Subject: Re: Penalty of calling a protected operation or task-entry. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: NNTP-Posting-Host: 12.211.13.75 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc02 1064545194 12.211.13.75 (Fri, 26 Sep 2003 02:59:54 GMT) NNTP-Posting-Date: Fri, 26 Sep 2003 02:59:54 GMT Organization: Comcast Online Date: Fri, 26 Sep 2003 02:59:54 GMT Xref: archiver1.google.com comp.lang.ada:42958 Date: 2003-09-26T02:59:54+00:00 List-Id: 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. Steve (The Duck) "Frank" wrote in message news:8cGcb.25659$os2.355577@news2.e.nsc.no... > Hi! > > GNAT 3.15p (WindowsXPProfessional / Linux'es) > -------- > As I have understood there is a time-penalty when calling a protected > operation or task-entry. Im thinking about adminstrative cost > of the call, not loss of parallell'ism. > > My situation is the following: > If I have a protected type that has two operation one "read" and one > "write". These are called by different tasks. > The "write" operation is called very seldom, but the "read" is called very > often. > > Is there some approach to remove penalty from the "read" operation? > > > -------- > Can someone point me to some literature or elaborate on this penalty? > > Frank > > >