С#.Rihter.ParallelLINQ

simple example

            int[] nums = Enumerable.Range(1, 10).ToArray();
            var res = nums.AsParallel().Where(n => n < 5).ToArray();
            Thread.Sleep(2000);
            Console.WriteLine(String.Join(" ", res));

output

1 2 3 4
This entry was posted in Без рубрики. Bookmark the permalink.