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,6009c73a58f787a0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-13 08:51:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3C41BB1A.84CB2107@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How to avoid unreferenced objects (mutexes etc) References: <3c3ee8c8.105408250@News.CIS.DFN.DE> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 13 Jan 2002 16:51:42 GMT NNTP-Posting-Host: 209.86.204.108 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1010940702 209.86.204.108 (Sun, 13 Jan 2002 08:51:42 PST) NNTP-Posting-Date: Sun, 13 Jan 2002 08:51:42 PST Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sun, 13 Jan 2002 08:51:46 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:18865 Date: 2002-01-13T16:51:42+00:00 List-Id: Nick Roberts wrote: > [referring to using a task to implement a critical section] > Of course, this is likely to be implemented by the compiler using > mutexes/semaphores. This appears to have been the expectation of the Ada-83 designers, but few if any compilers did so automatically (some had pragmata to allow the developer to indicate that a task was really a monitor), which is why protected objects were added to Ada 95. Nevertheless, I would still prefer the use of a task to a semaphore when mutual exclusion is needed for processing that cannot be in a protected object. -- Jeff Carter "Perfidious English mouse-dropping hoarders." Monty Python & the Holy Grail