Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 35200 invoked from network); 30 Dec 2010 20:28:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Dec 2010 20:28:20 -0000 Received: (qmail 27542 invoked by uid 500); 30 Dec 2010 20:28:20 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 27494 invoked by uid 500); 30 Dec 2010 20:28:19 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 27485 invoked by uid 99); 30 Dec 2010 20:28:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Dec 2010 20:28:19 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rainer.jung@kippdata.de designates 195.227.30.149 as permitted sender) Received: from [195.227.30.149] (HELO mailserver.kippdata.de) (195.227.30.149) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Dec 2010 20:28:13 +0000 Received: from [192.168.2.109] ([192.168.2.109]) by mailserver.kippdata.de (8.13.5/8.13.5) with ESMTP id oBUKRqBO017905 for ; Thu, 30 Dec 2010 21:27:53 +0100 (CET) Message-ID: <4D1CEB48.5040400@kippdata.de> Date: Thu, 30 Dec 2010 21:27:52 +0100 From: Rainer Jung User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: svn commit: r1051539 - /tomcat/trunk/java/org/apache/tomcat/util/threads/CounterLatch.java References: <20101221161425.2B6002388A43@eris.apache.org><4D122197.4090107@hanik.com><4D1A9A43.50404@hanik.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 30.12.2010 15:28, sebb wrote: > On 29 December 2010 02:17, Filip Hanik - Dev Lists wrote: >> On 12/28/2010 5:02 PM, sebb wrote: >>> On 22 December 2010 16:04, Filip Hanik - Dev Lists >>>> On 12/21/2010 7:29 PM, sebb wrote: >>>>> It would be cheaper to make it final as it's only ever set in the ctor >>>>> and is immutable. >>>> >>>> nothing cheaper, volatile are only expensive to write, not read. >>> >>> That's not my understanding of how volatile works. >> >> there is a great book on concurrency that explains how the bus and cpu >> architectures handle these, if I remember the title of it, I will send it to >> you > > Please do. Maybe Filiup meant that one: Multicore Application Programming: For Windows, Linux, and Oracle Solaris (Developer's Library) Darryl Gove ISBN-10: 0321711378 ISBN-13: 978-0321711373 At least I recently found some intersting information in there. Regards, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org