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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,af960bc705aaf51b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-25 18:35:49 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Complexity of protected objects Date: Mon, 25 Feb 2002 11:45:50 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1014655551 25815 136.170.200.133 (25 Feb 2002 16:45:51 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 25 Feb 2002 16:45:51 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:20433 Date: 2002-02-25T16:45:51+00:00 List-Id: "tony gair" wrote in message news:a5dont$dh9$1@helle.btinternet.com... > > J Barnes recommends that protected objects be as small as possible, so > being a little > bloody minded I want to see what the limits are for protected objects , The usual reason for this is that since a protected object is going to create what amounts to a "critical section" you don't want to spend any more time in one than you have to. One thread running through a long protected object's code is going to block out other threads from accessing it - hence the "keep it short" advice. I don't know of any natural limitations that would make it A Bad Thing to have a very large protected object. AFAIK, its only a concern for how long it will block execution of other tasks that limit size. The rest would be whatever limitations your compiler may impose. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/