Exemple #1
0
 static void Main(string[] args)
 {
     // Too nice example =)
     TheClub club = new TheClub();
     for (int i = 1; i <= 5; i++) new Thread(TheClub.Enter).Start(i);
     Console.ReadLine();
 }
Exemple #2
0
        static void Main(string[] args)
        {
            // Too nice example =)
            TheClub club = new TheClub();

            for (int i = 1; i <= 50; i++)
            {
                new Thread(TheClub.Enter).Start(i);
            }
            Console.ReadLine();
        }