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,722530427d626919 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-11 19:39:41 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!newshub2.rdc1.sfba.home.com!news.home.com!news1.frmt1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Protected Type Question. References: X-Newsreader: Tom's custom newsreader Message-ID: <%5hZ5.18433$M5.729727@news1.frmt1.sfba.home.com> Date: Tue, 12 Dec 2000 03:39:39 GMT NNTP-Posting-Host: 24.20.190.201 X-Complaints-To: abuse@home.net X-Trace: news1.frmt1.sfba.home.com 976592379 24.20.190.201 (Mon, 11 Dec 2000 19:39:39 PST) NNTP-Posting-Date: Mon, 11 Dec 2000 19:39:39 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:2973 Date: 2000-12-12T03:39:39+00:00 List-Id: 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.