Archive > February 2011

When Small Mistakes have Great Impact

Take a look at the ¬†following simple program class Program { static void Main(string[] args) { var numbers = new String[] { “one”, “two”, “three”, “four”, “five”, “six” }; foreach (var number in numbers) { WaitCallback callback = new WaitCallback(state => Console.WriteLine(number)); ThreadPool.QueueUserWorkItem(callback); } Console.Read(); } } Can you predict what will be the outcome [...]

Continue reading

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
Rss Feed Tweeter button Facebook button Linkedin button