static void Main() 
	{    
		Thread.CurrentThread.Name = "Main";
		HiloSencillo h1 = new HiloSencillo();
		Thread t = new Thread(h1.Escribe);
		t.Name = "Escribe";
		t.Start();
		h1.Escribe();
	}
Esempio n. 2
0
    static void Main()
    {
        Thread.CurrentThread.Name = "Main";
        HiloSencillo h1 = new HiloSencillo();
        Thread       t  = new Thread(h1.Escribe);

        t.Name = "Escribe";
        t.Start();
        h1.Escribe();
    }