I also have had thought on how to make Nant run tasks in a multi-processing manner. My basic thought is to create a custom task based off of a task container. Various attributes would determine how many can run at a time. But, and here is where I'd like some feedback, should I spwan threads and run the class underlying the Nant task, or should I spawn a new Nant process? My concerns mainly revolve around whether I can get around the fact that I doubt some of the properties I pass from the root project to the child project using the child Nant task (vs child Nant process) and going to be threadsafe and whether I can get around that with appropriate subclasses that are threadsafe. There is also the question of the thread safety of the contained tasks themseleves (at least if they make use of any static members). However, with a child process, I'll have to serialize the property values and contents within the task container into a temporary .build file. Those of you that have spent more time in the core engine, any advice or even a gut instinct call? My gut says child process due to fewer risks.
Anyone interested in helping with development? -----Original Message----- Message: 2 Date: Wed, 25 Oct 2006 15:32:39 -0600 From: "Jon W" <[EMAIL PROTECTED]> Subject: Re: [NAnt-users] building nant tasks in parallel To: "Gary Feldman" <[EMAIL PROTECTED]> Cc: nant-users@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Jon W wrote: > > I have a C++ product that takes ~3 hours to build both Debug and > > Release versions. With the multiple core cpus available, I would > > like to be building the Debug and Release versions at the same time. > > > Having a multiple core CPU is only going to help if the build is CPU > bound. It's often memory bound, so you may not see an improvement, > and may even see a degradation from building simultaneously. Yes, and this isn't a issue for me. The point still is that other people and myself are looking for a way to parallelize tasks. Is this capability on the roadmap, or has anybody implemented a solution that works well? Thanks, Jon ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users