Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 50482 invoked from network); 13 Sep 2006 21:37:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 21:37:08 -0000 Received: (qmail 23515 invoked by uid 500); 13 Sep 2006 21:37:03 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 23496 invoked by uid 500); 13 Sep 2006 21:37:03 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 23467 invoked by uid 99); 13 Sep 2006 21:37:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 14:37:03 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rooneg@gmail.com designates 66.249.82.237 as permitted sender) Received: from [66.249.82.237] (HELO wx-out-0506.google.com) (66.249.82.237) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 14:36:55 -0700 Received: by wx-out-0506.google.com with SMTP id s13so2514152wxc for ; Wed, 13 Sep 2006 14:36:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ktykT0W9YD3YviI+dpyzBIjbvrArp6nP1hzmqEbTb84xw+F4rHlRPrxKXFyx95ehWcBN/7w7JnXJUM1xAzSl0gz+H1XumS93Un4bEJv07QHqrlELJwJcL8zEndC6UxdMMudozgRdiqG0dhgnHaSegWMRCvEquY2q2x0g2+1xZT0= Received: by 10.70.108.18 with SMTP id g18mr11275108wxc; Wed, 13 Sep 2006 14:36:28 -0700 (PDT) Received: by 10.70.71.8 with HTTP; Wed, 13 Sep 2006 14:36:28 -0700 (PDT) Message-ID: <7edfeeef0609131436m401a3ca3p1bbf1fd0f90d5863@mail.gmail.com> Date: Wed, 13 Sep 2006 17:36:28 -0400 From: "Garrett Rooney" Sender: rooneg@gmail.com To: abdera-dev@incubator.apache.org Subject: Re: FOM Interfaces and Thread Safety In-Reply-To: <45087534.20700@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45087534.20700@gmail.com> X-Google-Sender-Auth: 8a6895775876c4df X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/13/06, James M Snell wrote: > Currently the FOM Interface are not threadsafe. For instance, if > multiple threads try to call entry.setId(...) at the same time, it could > cause some rather interesting results. However, synchronizing the > methods by default causes a very significant performance drop. I > propose that we simply take it as a given that the FOM objects are not > threadsafe and that end developers, if they want to allow multiple > threads to modify individual FOM objects, they must provide the > necessary synchronization. +1, synchronizing those objects seems like a horribly wasteful idea, considering how seldom they are likely to be used from multiple threads. -garrett