Commits

Anonymous committed 5344604 Merge

Merge with ConcurrentQueue

  • Participants
  • Parent commits 2f46faa, a0a61e3
  • Branches Locking

Comments (0)

Files changed (1)

ConsoleApplication2/Program.cs

 
         static void Main(string[] args)
         {
-            for (int i = 0; i <Environment.ProcessorCount/2; i++)
+            int pairs = args.Any() ? int.Parse(args[0]) : Environment.ProcessorCount/2;
+            for (int i = 0; i <pairs; i++)
             {
                 Go(i);
             }