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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,474c04ac0211c5fa,start X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Explicit Posix/Notify() vs Guards Date: 1997/09/07 Message-ID: <5utrqp$3ip$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 270447422 Distribution: world X-XXMessage-ID: Organization: Royal Melbourne Institute of Technology Newsgroups: comp.lang.ada Date: 1997-09-07T00:00:00+00:00 List-Id: The Posix/Threads model (and Java) provide explicit notification schemes for informing sleeping threads when to reevaluate any barrier conditions. Ada provide guards on entries, and relies on the run time system to recognise when the condition associated with a guard _may_ have changed. Clearly the Ada model may end up being overly conservative, recalculating the barrier condition more often than is needed. In some ways it may be less flexible in that other tasks may be unable to cause reevaluation of the guards, in the same way that an explicit notify would. Is this a reasonable analysis, and what benefits are gained from Ada's model? Dale