using System; using System.Threading; public class ThreadTest { public void csharpeMethod() { int result = 1; Console.WriteLine(result.ToString() + " Thread ID is " + AppDomain.GetCurrentThreadId().ToString()); } public static void Main() {ThreadTestobjThread = newThreadTest();objThread.csharpeMethod(); ThreadStart objts = new ThreadStart(objThread.csharpeMethod); Thread obj = new Thread(objts); obj.Start(); } }
ASP.NET CSharpe ADO.NET and Sql Server and Javascript and jquery Example that is help to programmer
Showing posts with label thread in csharp. Show all posts
Showing posts with label thread in csharp. Show all posts
Thursday, September 29, 2011
how to start thread ?
Subscribe to:
Posts (Atom)