using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Threading.Tasks;
public static ConcurrentDictionary<string, string> stuff = new ConcurrentDictionary<string, string>();
public static HashSet<string> strCol = new HashSet<string>();
public static readonly int loopCount = 10000000;
public static ConcurrentDictionary<int, bool> isFlighted = new ConcurrentDictionary<int, bool>();
public static void Main()
isFlighted.TryAdd(1, false);
List<Task> allTasks = new List<Task>();
for (int i = 0; i < 3; i++)
allTasks.Add ( Task.Factory.StartNew(() =>
Console.WriteLine("ADD ELE");
for (int j = 0; j < 200; j++)
strCol.Add(j.ToString());
Console.WriteLine("ADD ELE DONE" + strCol.Count);
Task.WaitAll(allTasks.ToArray());
Console.WriteLine("DONE");