using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace ConsoleApplication16
{
class Program
{
static string str1;
static string str2;
static string str3;
static string str = null;
static void Main(string[] args)
{
Thread td1 = new Thread(Print);
str1= td1.ManagedThreadId.ToString();
Thread td2 = new Thread(Print);
str2 = td2.ManagedThreadId.ToString();
Thread td3 = new Thread(Print);
str3 = td3.ManagedThreadId.ToString();
str = str1 + str2 + str3;
for (int i = 0; i < 10; i++)
{
Console.WriteLine(str);
}
Console.ReadKey();
}
static void Print()
{
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace ConsoleApplication16
{
class Program
{
static string str1;
static string str2;
static string str3;
static string str = null;
static void Main(string[] args)
{
Thread td1 = new Thread(Print);
str1= td1.ManagedThreadId.ToString();
Thread td2 = new Thread(Print);
str2 = td2.ManagedThreadId.ToString();
Thread td3 = new Thread(Print);
str3 = td3.ManagedThreadId.ToString();
str = str1 + str2 + str3;
for (int i = 0; i < 10; i++)
{
Console.WriteLine(str);
}
Console.ReadKey();
}
static void Print()
{
}
}
}