Orhan SALUR

Orhan SALUR

  • NA
  • 49
  • 23k

tpl, tack parallel library, thread

Jun 17 2015 1:21 AM
hello, how can i coding with tpl? thanks... 
class Program
{
static void print(object o)
{
for (int i = 0; i < 5; i++)
Console.WriteLine(o + " " + i + "");
}
static void Main(string[] args)
{
Thread th1 = new Thread(print);
Thread th2 = new Thread(print);
th1.Start();
th2.Start();
th1.Join();
th2.Join();
Console.Read();
}
}