comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <dale@goanna.cs.rmit.EDU.AU>
Subject: Explicit Posix/Notify() vs Guards
Date: 1997/09/07
Date: 1997-09-07T00:00:00+00:00	[thread overview]
Message-ID: <5utrqp$3ip$1@goanna.cs.rmit.edu.au> (raw)


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




             reply	other threads:[~1997-09-07  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-07  0:00 Dale Stanbrough [this message]
1997-09-08  0:00 ` Explicit Posix/Notify() vs Guards Tucker Taft
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox