Skip to content

Instantly share code, notes, and snippets.

@stefansedich
Created October 25, 2011 12:29
Show Gist options
  • Select an option

  • Save stefansedich/1312573 to your computer and use it in GitHub Desktop.

Select an option

Save stefansedich/1312573 to your computer and use it in GitHub Desktop.
class Program
{
static void Main(string[] args)
{
Parallel.ForEach(Enumerable.Range(0, 1000000000), i => Task.Factory.StartNew(() => Console.WriteLine(i)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment