Printing? Hm. Formally you can, using
Parallel.ForEach
(
http://msdn.microsoft.com/en-us/library/system.threading.tasks.parallel.foreach.aspx[
^]), but this is a very bad example. A console where you print it serialized the calls to, say, the method
System.Console.WriteLine
, so you will see pretty much the same, only some change in order is possible. A console is a poorly "parallelizing" resource.
The resource which you can effectively make parallel is the set of CPU cores. For true parallel execution, you need some fragments of code which are logically independent and can be executed not using any single shared resource. A simple example is a call some function with extensive calculation using only the data passed to it in its parameters, so all calculation is done in the function's own stack. As each thread works with a separate thread, shared resources are minimal, ideally only the CPU cores in case there are more then one, the parallel code will be most effective.
Please read some introductory material. Start here:
http://msdn.microsoft.com/en-us/library/dd537608.aspx[
^].
Some useful background:
http://en.wikipedia.org/wiki/Parallel_computing[
^].
—SA