[Mono-bugs] [Bug 536919] New: Parallel.For doesn't execute when number of iterations is fewer than number of processors
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Sep 4 15:24:28 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=536919
Summary: Parallel.For doesn't execute when number of iterations
is fewer than number of processors
Classification: Mono
Product: Mono: Runtime
Version: SVN
Platform: All
OS/Version: Linux
Status: NEW
Severity: Major
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: skkaul at andrew.cmu.edu
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Consider the following program:
using System;
using System.Threading;
namespace Grue
{
class Test
{
public static void Main(string[] args)
{
Parallel.For(0, Convert.ToInt32(args[0]), (i, loopState) =>
{
Console.Out.WriteLine(i);
});
}
}
}
On a 2-core x86 machine, the loop fails to execute if the argument is less than
2. On an 8-core x86 machine, the loop fails to execute if the argument is less
than 8. I am running Mono 2.5 r140988.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list