c# thread function code example
Example 1: c# new thread
using System.Threading;
new Thread(() =>
{
Thread.CurrentThread.IsBackground = true;
/* run your code here */
Console.WriteLine("Hello, world");
}).Start();
Example 2: thread c#
using System.Threading;