Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!news.glorb.com!postnews.google.com!p25g2000pri.googlegroups.com!not-for-mail From: Jack Newsgroups: comp.lang.java.programmer Subject: Java thread Date: Sat, 10 Sep 2011 21:03:24 -0700 (PDT) Organization: http://groups.google.com Lines: 5 Message-ID: <128ea2e0-7a2e-4c86-9507-8e15a0b892b9@p25g2000pri.googlegroups.com> NNTP-Posting-Host: 67.188.150.126 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1315713902 12741 127.0.0.1 (11 Sep 2011 04:05:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 11 Sep 2011 04:05:02 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p25g2000pri.googlegroups.com; posting-host=67.188.150.126; posting-account=CahHvgoAAAA27gEVS14ggLk784nVIco1 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20100101 Firefox/6.0.1,gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7777 For Java thread, how to ensure that wait() does not miss notify()? Otherwise the thread will hang and can not shut down. Thanks. Jack