Task

Spawn a new process which can run simultaneously with, and independently of, the original parent process.




using System;
using System.Threading;
 
namespace Fork {
    class Program {
        static void Fork() {
            Console.WriteLine("Spawned Thread");
        }
 
        static void Main(string[] args) {
            Thread t = new Thread(new ThreadStart(Fork));
            t.Start();
 
            Console.WriteLine("Main Thread");
            t.Join();
 
            Console.ReadLine();
        }
    }
}