new Thread Singleton singleton1 Singleton GetInstance Console WriteLin

1
2
3
4
5
6
7
8
(new Thread(() =>
{
Singleton singleton1 = Singleton.GetInstance();
Console.WriteLine(singleton1.Date);
})).Start();
Singleton singleton2 = Singleton.GetInstance();
Console.WriteLine(singleton2.Date);