static void Main(string[] args) { Pinger p = new Pinger(); p.startNewThread(); Console.WriteLine("Press any key to exit."); Console.ReadKey(); }