using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace ThreadLibrary
{
   public class Tasks
   {
      public void Action1()
      {
         Thread.Sleep(5000);
         Console.WriteLine("Action1: " + Thread.CurrentThread.Name);
      }

      public void Action2(object p)
      {
         Thread.Sleep(10000);
         Console.WriteLine("Action2: " + Thread.CurrentThread.Name);
         Console.WriteLine(p.GetType().ToString() + ": " + p.ToString());
      }
   }
}
