ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Ganyo <scott.ga...@eTapestry.com>
Subject RE: Multiple processors
Date Tue, 03 Apr 2001 18:28:01 GMT
Yes, but if you've correctly specified your Ant Tasks, why not allow Ant to
do each task in a separate thread and just manage the explicit dependencies
between them?

Scott

> -----Original Message-----
> From: Jesse Tilly [mailto:JTilly@hoteltools.com]
> Sent: Tuesday, April 03, 2001 1:15 PM
> To: 'ant-user@jakarta.apache.org'
> Subject: RE: Multiple processors
> 
> 
> Ant will not thread out tasks if that's what you're asking.  
> Javac does not
> thread out compilation.  For the most part, unless it's 
> understood from the
> builder's point of view, multi-threading built projects is of no use.
> Source and libraries have many dependencies that only the desginer
> understands.
> 
> For example:
> 
> Let's say I build three things, lib1, lib2 and project1. lib1 
> and lib2 are
> independent and could be built simultaneously.  project1 
> depends on lib1 and
> lib2.  While it's possible to parse all the code to find the 
> dependencies
> and make the decision there, it would probably be faster to 
> just serialize
> the building of lib1, lib2 and project1.  The implementation would be
> easier, definitely.
> 
> Anyway, that's probably more than you wanted but I thought 
> you'd like to
> know why Ant doesn't thread stuff out for you.
> 
> Jesse
> 
> -----Original Message-----
> From: pdw [mailto:pdw@dowman.net]
> Sent: Tuesday, April 03, 2001 1:27 PM
> To: ant-user@jakarta.apache.org
> Subject: Re: Multiple processors
> 
> 
> is your JVM using native threads or green threads?  make sure 
> you're using
> native threads, use:
> 
> java -version
> 
> 
> ----- Original Message -----
> From: <Scott_Carter@i2.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Tuesday, April 03, 2001 10:12 AM
> Subject: Multiple processors
> 
> 
> > My build box has four processors, but when I run an ant 
> build only 25%,
> one
> > prossesor is being used.  It is a Windows NT box.  Is ant 
> multi threaded,
> > will it take advantage of multiple processors?
> >
> > Thanks - Scott
> >
> >
> >
> 

Mime
View raw message