2
Posted on 5:46 AM by Softminer and filed under
C#,
Visual Studio
Task[] tasks = new Task[1000]; for (int i = 0; i < 1000; i++) { tasks[i] = Task.Factory.StartNew(() => { Console.WriteLine(System.DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss.fff tt")); }); } Task.WaitAll(tasks);
You da man for this!!!!
i am getting exception on task.waitall(task) statement....
Post a Comment