Concurrency Issue C# with Example
using System; using System.Threading; namespace CSharpMultiThreading { class Program { static readonly object _object = new object(); static void CommonMethod() { Thread.Sleep(50); Console.WriteLine("CommonMethod executing for Secondary Thread#{0} on TickCount: {1}", Thread.CurrentThread.ManagedThreadId, Environment.TickCount); } static void Main() { // Create and Start ten new threads. for (int i = 0; i < 10; i++) { new Thread(CommonMethod).Start(); } } } }