Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!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, 13 Aug 2013 15:51:38 -0500 Date: Tue, 13 Aug 2013 13:51:39 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: What is so bad aboud Thread.stop() ? References: <8fe57dc2-a323-4821-941c-4036663cbce5@googlegroups.com> <7cb96188-91ce-4c2b-ace8-5eeb1b30815e@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 23 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.192.35 X-Trace: sv3-h4FmyjF0BFzH352ydvsxedZy9+xZCe6R1sFfoKtFvv0KaCswEuIlXernOQM4zQscYnziaR/gOcdfpi5!IvDTVi3JJ3ikyHm0Xeikzvq3b/3jtYME+NcjTIzCr/AeiHJQ6g7NOtgHb3X+EC4sbf3QgRYuZsGH!CJhsVVo/rB/HREtLXltvxwfYY2NhLNnVwGReBOmeVW5ugw== 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: 2211 Xref: csiph.com comp.lang.java.programmer:24956 On 8/13/2013 1:18 PM, blmblm@myrealbox.com wrote: ... > But to get back to your presumably-safe scenario, in which thread B > finishes normally. It seems reasonable to assume that all values > assigned in thread B should then be visible to other threads. > What I'm wondering, though, is whether that's explicitly required > by the Java memory model. (Yeah, yeah, really I should probably > just go read up on the memory model myself, but I thought someone > else might know, and that this might be an interesting point to > raise anyway.) ... "The final action in a thread T1 synchronizes-with any action in another thread T2 that detects that T1 has terminated. T2 may accomplish this by calling T1.isAlive() or T1.join()." http://docs.oracle.com/javase/specs/jls/se5.0/html/memory.html#17.4.4 Patricia