Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 12773 invoked from network); 26 Feb 2008 21:05:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2008 21:05:44 -0000 Received: (qmail 60885 invoked by uid 500); 26 Feb 2008 21:05:21 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 60838 invoked by uid 500); 26 Feb 2008 21:05:21 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 60765 invoked by uid 99); 26 Feb 2008 21:05:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 13:05:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of avijayr@gmail.com designates 209.85.132.248 as permitted sender) Received: from [209.85.132.248] (HELO an-out-0708.google.com) (209.85.132.248) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 21:04:46 +0000 Received: by an-out-0708.google.com with SMTP id b15so617389ana.25 for ; Tue, 26 Feb 2008 13:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=n7BNN00W0CYgQDeMG1NZzooioT8jUit48BIQcEkX4y8=; b=X/dgAzgxqTdEfpKIpgMQz85cvLqwOjajzguUpBUyaf395CiBjhhb4LZt2cFmoLo9FmSHB37gxOefkK3ohoqGfUDqGe/6Uum/a4InWjTFlHrIQqao9kTiKxDj7qCbGyTQQMlCNi/H54r7RKVPAwtfR9TuIMzFwYVWoG/N+cg1YrM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=NL5yem2O+DhQz+TfM9oHJQkfHEx1PDYrwH8DiXRnk5gbx6bhPurn1qsSwJ2kCQyq2ZmlRs4+dGCd3oRNvfN/kCWDkAtEO+EyyH85JOLAbHWqlXrb69IjCoVSmfSMJHo3B+oImPOsYaxtc21CezFTTsVOxhBdgzpjSltMZJhN+zE= Received: by 10.100.242.20 with SMTP id p20mr10609535anh.54.1204059892304; Tue, 26 Feb 2008 13:04:52 -0800 (PST) Received: from ?70.197.223.161? ( [70.197.223.161]) by mx.google.com with ESMTPS id 8sm6858660agd.30.2008.02.26.13.04.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 26 Feb 2008 13:04:51 -0800 (PST) Message-ID: <47C47EF0.8080905@gmail.com> Date: Tue, 26 Feb 2008 15:04:48 -0600 From: Vijay Aravamudhan User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Ant Developers List Subject: Re: Tasks in parallel References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Yes - I do agree totally with you that it needs to be done intelligently. What I am trying to inquire about is the existence of the ability which itself is not present right now. For eg, in my scenario, I know that I am trying to copy to an ftp server using the scp command, and that there is network bandwidth to support multiple connections. thanks for your reply, Vijay Jeffrey E Care wrote: > One thread per file? Hows that going to help for a fileset that selects 50 > files? 100? 1000? > > Don't get me wrong - to build WebSphere we have many custom tasks that > spawn worker threads. My point is that you have to be smart about how you > build in multthreading support; simply spawning a thread for every unit of > work isn't very smart & for cases where you have many many units of work > you're more likely to make things worse than better. > > ____________________________________________________________________________________________ > > Jeffrey E. (Jeff) Care > carej@us.ibm.com > IBM WebSphere Application Server > WAS Release Engineering > > > > > > > > Vijay Aravamudhan > 02/26/2008 02:36 PM > Please respond to > "Ant Developers List" > > > To > Ant Developers List > cc > > Subject > Tasks in parallel > > > > > > > hi, > I know that there is already a parallel task. But... > > We have a build file which goes something like this: > > > > > ... > > > > > (I have omitted the unnecessary bits for this example) > > Consider the scenario where the file transfer takes a long time: would > it be a good idea to have the copy/scp/ftp tasks create different > threads for each file? I know I can separate the fileset into individual > files and then create multiple copy commands that are wrapped inside a > parallel task. But that defeats the purpose of defining the fileset in > the first place. What do you think? > > thanks, > Vijay > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org