Some test code for threading of C# .NET