Starting a thread with parameters
suggest changeusing System.Threading;
class MainClass {
static void Main() {
var thread = new Thread(Secondary);
thread.Start("SecondThread");
}
static void Secondary(object threadName) {
System.Console.WriteLine("Hello World from thread: " + threadName);
}
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents