What will the following program write to the console? using…
What will the following program write to the console? using System;using System.Threading; class Program{ static void Main() { Thread t = new Thread(new ThreadStart(Worker)); Console.WriteLine(“Main thread does some work…”); t.Start(); t.Join(); Console.WriteLine(“Main thread ends.”); } static void Worker() { Console.WriteLine(“Worker thread started…”); Thread.Sleep(500); Console.WriteLine(“Worker thread finished.”); }}