ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Tilly <>
Subject RE: Multiple processors
Date Tue, 03 Apr 2001 18:15:18 GMT
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

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.


-----Original Message-----
From: pdw []
Sent: Tuesday, April 03, 2001 1:27 PM
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: <>
To: <>
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%,
> prossesor is being used.  It is a Windows NT box.  Is ant multi threaded,
> will it take advantage of multiple processors?
> Thanks - Scott

View raw message