using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { Program pg = new Program(); Thread thread = new Thread((pg.Testing)); thread.Start("Inside"); for (int i = 0; i < 15; i++) { Console.WriteLine("Outside"); Thread.Sleep(100); } Console.ReadLine(); } public void Testing(Object value) { for (int i = 0; i < 12; i++) { Console.WriteLine("Inside Thread : " + value); Thread.Sleep(100); } } } }
Thread.Start
Object
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)