Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 18122 invoked from network); 7 Apr 2005 12:11:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Apr 2005 12:11:39 -0000 Received: (qmail 68518 invoked by uid 500); 7 Apr 2005 12:11:31 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 68479 invoked by uid 500); 7 Apr 2005 12:11:31 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 68465 invoked by uid 99); 7 Apr 2005 12:11:30 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of mdiggory@gmail.com designates 64.233.170.204 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.204) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 07 Apr 2005 05:11:29 -0700 Received: by rproxy.gmail.com with SMTP id 1so351465rny for ; Thu, 07 Apr 2005 05:11:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=Q2bejNy6GHnF3kDHDKmXiVqU/V8a6095i7J4m20XdyTzVYdJJvNSLKAYeaVDPblne4znGYJumZOrADstPlul/Dd7sfLLxFAQ3XAHD4FhZbmQUuTUkm2iVB9cKFHVzs3h1rlHeAX7pEkTv4Al/1N0fueXlRCQmR6Tsosz6hMyo18= Received: by 10.38.1.62 with SMTP id 62mr407300rna; Thu, 07 Apr 2005 05:11:27 -0700 (PDT) Received: from ?192.168.1.6? ([209.6.203.121]) by mx.gmail.com with ESMTP id 62sm499534rna.2005.04.07.05.11.27; Thu, 07 Apr 2005 05:11:27 -0700 (PDT) Message-ID: <4255236F.1040707@apache.org> Date: Thu, 07 Apr 2005 08:11:27 -0400 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [math] thread-safety of DescriptiveStatistics? References: <85EC2A2F2D64DB4AB2F796CEBD7E2539E2A5@beomail1.NTSCD.C-COR.com> In-Reply-To: <85EC2A2F2D64DB4AB2F796CEBD7E2539E2A5@beomail1.NTSCD.C-COR.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Mark Diggory X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N No, I wouldn't expect it to be thread safe at this time. This design decision was made for performance reasons. Your best bet would be to wrap it in a thread safe wrapper to block your calls to externally: http://www.javaworld.com/jw-08-1998/jw-08-techniques-p5.html -cheers, Mark Diggory Baker, Anthony wrote: >Is DescriptiveStatistics safe to use in a multi-threaded environment? I have a statistics producer that is accessed by multiple threads and thus simultaneous invocations of addValue() are likely. Is this ok? What about changes to the window size? > >Any insight you can shed on the intended usage pattern is greatly appreciated. > >Thanks, >Anthony > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org