0
Reply

tpl, tack parallel library, thread

Orhan SALUR

Orhan SALUR

Jun 17 2015 1:21 AM
457
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();
}
}