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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,722530427d626919 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-12 02:20:11 PST Path: supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!colt.net!newsfeed00.sul.t-online.de!t-online.de!grolier!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "Beard, Frank" Newsgroups: comp.lang.ada Subject: RE: Protected Type Question. Date: Tue, 12 Dec 2000 01:43:37 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 976616408 55049 137.194.161.2 (12 Dec 2000 10:20:08 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 12 Dec 2000 10:20:08 +0000 (UTC) To: "'comp.lang.ada@ada.eu.org'" Return-Path: X-Mailer: Internet Mail Service (5.5.2448.0) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0beta5 Precedence: bulk List-Id: comp.lang.ada mail<->news gateway Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:2984 Date: 2000-12-12T01:43:37-05:00 The task (3) combination was more common, but I also had other task combinations hang. I don't think the program is crashing. Each of the tasks have "when others" exception handlers that log, and nothing is showing up. Pragma Atomic and Volatile were a shot in the dark. I didn't really think it would make a difference. We're running on NT 4.0 with Service Pack 5. If you think of anything else, let me know. Thanks. Frank -----Original Message----- From: tmoran@acm.org [mailto:tmoran@acm.org] Sent: Monday, December 11, 2000 10:40 PM To: comp.lang.ada@ada.eu.org Subject: Re: Protected Type Question. That semaphore code should work, and certainly shouldn't hang. Is there any possible significance to the fact both your examples show task (3) as the one that does a RELEASE but never gets to RELEASED? Are you sure the program is hanging, and not crashing and somehow hanging during the attempted crash? Pragmas Atomic and Volatile should certainly not be necessary. The whole point is that only one task at a time can execute the entries or procedures in, and thus access or change the value of data (Busy, in this case) of, a protected object. _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/mailman/listinfo/comp.lang.ada