comp.lang.ada
 help / color / mirror / Atom feed
* Explicit Posix/Notify() vs Guards
@ 1997-09-07  0:00 Dale Stanbrough
  1997-09-08  0:00 ` Tucker Taft
  0 siblings, 1 reply; 2+ messages in thread
From: Dale Stanbrough @ 1997-09-07  0:00 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-09-08  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-07  0:00 Explicit Posix/Notify() vs Guards Dale Stanbrough
1997-09-08  0:00 ` Tucker Taft

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