Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 31 May 2011 23:37:22 -0500 Date: Tue, 31 May 2011 21:37:16 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Making one or more threads wait for another to produce a value or fail References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 11 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.199.144 X-Trace: sv3-Ek9Zm9b75tirLIofS7nzFjl6kVnodGZnHaMbc5rraOoge+iy22mL9zq+Gr/7obFtcmYzdAcdyguk1sB!wc0fYX8NKq80TnzNpbJsRxI5HfTn1IO++nGuRwXSMz8YdB9eRaoZoHCg3LxD2pYXQ3Ji3+h2wuTT!I7vzV1OnPDfCKnoq9aIK63DeWEkSsCRqUE25+ClFVVCUdkg= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1863 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4842 On 5/31/2011 8:45 PM, Peter Duniho wrote: ... > Spurious wakeup, yes (why people continue to tolerate that in Java, I > have no idea…plenty of other APIs with concurrency support don't have > that trouble). I don't continue to tolerate spurious wake-ups in Java. My view of wait and notify is that they are low level primitives that I used as long as they were all we had. Why not use e.g. CountDownLatch? Patricia