What am I choose the way of multi-threading?
These days I'm training my programming skills.
I read materials about multi-threads, and I got some curious things.

First is the number of maximum threads is fixed depends on cores?
If I got quad-core CPU, then it means I can get just 4 threads?

Second is the way of multi-threading.
It shows several ways of - 
One of those is instanciating thread and starting:

    class ThreadTest
    {
       static void Main()
       {
           Thread t = new Thread (WriteY); // Kick off a new thread
           t.Start(); 
           for (int i = 0; i < 1000; i++) 
           Console.Write ("x");
       }
       static void WriteY()
       {
           for (int i = 0; i < 1000; i++) Console.Write ("y");
       }
    }

The other way is using parallel class such as parallel.invoke / parallel.foreach.

I tried to proceed over 100 instacnces with multi-threading system.
All instances are same except for input parameter.
I  don't know which way is better for prceeding lots of threads.


What am I choose the way of multi-threading?
===

These days I'm training my programming skills.
I read materials about multi-threads, and I got some curious things.

First is the number of maximum threads is fixed depends on cores?
If I got quad-core CPU, then it means I can get just 4 threads?

Second is the way of multi-threading.
It shows several ways of - 
One of those is instanciating thread and starting:

    class ThreadTest
    {
       static void Main()
       {
           Thread t = new Thread (WriteY); // Kick off a new thread
           t.Start(); 
           for (int i = 0; i < 1000; i++) 
           Console.Write ("x");
       }
       static void WriteY()
       {
           for (int i = 0; i < 1000; i++) Console.Write ("y");
       }
    }

The other way is using parallel class such as parallel.invoke / parallel.foreach.

I tried to proceed over 100 instacnces with multi-threading system.
All instances are same except for input parameter.
I  don't know which way is better for prceeding lots of threads.

