ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28122] New: - Parallel task with threadsPerProcessor does not work as documented
Date Thu, 01 Apr 2004 11:20:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28122>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28122

Parallel task with threadsPerProcessor does not work as documented

           Summary: Parallel task with threadsPerProcessor does not work as
                    documented
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: odungey@csc.com


If I create a <parallel> block with 10 tasks and a threadsPerProcessor value set
to 2 on a machine with 2 processors only 4 tasks are completed and the rest
ignored. This is not the point of the parallel task, the threadsPerProcessor is
the throttle control. Here is an example target that shows the failure:

<target name="test">
        <parallel threadsPerProcessor="2" failonany="true">
            <echo message="01"/>
            <echo message="02"/>
            <echo message="03"/>
            <echo message="04"/>
            <echo message="05"/>
            <echo message="06"/>
            <echo message="07"/>
            <echo message="08"/>
            <echo message="09"/>
            <echo message="10"/>
        </parallel>
    </target>

My output:

D:\ccViews\ODungey_48\Build\Build>ant test
Buildfile: build.xml

test:
     [echo] 01
     [echo] 04
     [echo] 02
     [echo] 03

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message