From lopes@parc.xerox.com Thu Oct 30 21:03:30 1997 Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by amber.ccs.neu.edu (8.8.6/8.7.3) with SMTP id VAA12310 for ; Thu, 30 Oct 1997 21:03:28 -0500 (EST) Received: from sneetch.parc.xerox.com ([13.2.18.231]) by alpha.xerox.com with SMTP id <55841(1)>; Thu, 30 Oct 1997 18:02:25 PST Received: by sneetch.parc.xerox.com id <177477>; Thu, 30 Oct 1997 18:02:19 PST Sender: Cristina Lopes From: Cristina Lopes To: Karl Lieberherr Subject: Re: minimize notifies In-Reply-To: <199710301435.JAA02893@stockberg.ccs.neu.edu> References: <199710301435.JAA02893@stockberg.ccs.neu.edu> Message-Id: <97Oct30.180219pst."177477"@sneetch.parc.xerox.com> Date: Thu, 30 Oct 1997 18:02:19 PST Status: R Karl Lieberherr writes: > Hi Crista: > > again on page 158. > > I was assuming that the DJ and Java program had the same behavior regarding > notifications. They have the same behavior, but not necessarily the same implementation. > If we would like this, could we change in the method manager for put: > > empty = false; > > to > > if (usedSlots==1) empty=false; > > Then the COOL code should only notify if a condition variable has actually > changed. Does your implementation do this? Yes - ideally notifications should be specific to condition variables. But that's a bit more complex to implement - although not impossible.