Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 58803 invoked from network); 13 Sep 2006 22:04:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 22:04:35 -0000 Received: (qmail 81353 invoked by uid 500); 13 Sep 2006 22:04:35 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 81336 invoked by uid 500); 13 Sep 2006 22:04:35 -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 81327 invoked by uid 99); 13 Sep 2006 22:04:35 -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 15:04:35 -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 stephen.duncan@gmail.com designates 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO py-out-1112.google.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 15:04:25 -0700 Received: by py-out-1112.google.com with SMTP id c30so3230120pyc for ; Wed, 13 Sep 2006 15:03:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WPRmlnKGBDCchgcaQBpidIHEkvbWVmLI/68jYEvtqCc9Mg5Z0f+MVRcVY/JxDi3ijuAquL2heGs6qH2r9Q9xBX8t+ub6FHSHD2SRbfiVNXwZ6QXWC9IC4nhQ6Gq3NEPvNeLBICjx6VGKe4+CGCND/Es5G6l6Ksd2wktyjPDbRuw= Received: by 10.35.115.18 with SMTP id s18mr13789303pym; Wed, 13 Sep 2006 14:53:58 -0700 (PDT) Received: by 10.35.50.14 with HTTP; Wed, 13 Sep 2006 14:53:58 -0700 (PDT) Message-ID: Date: Wed, 13 Sep 2006 17:53:58 -0400 From: "Stephen Duncan" 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-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. > > - James > +1 -- Stephen Duncan Jr www.stephenduncanjr.com