how to create a new thread C# code example
Example: new thread c#
using System.Threading;
//creating and running a void in a new thread
Thread t = new Thread(new ThreadStart(task)); //task is the void
t.Start(); //starting the thread
using System.Threading;
//creating and running a void in a new thread
Thread t = new Thread(new ThreadStart(task)); //task is the void
t.Start(); //starting the thread