Click here to Skip to main content
15,912,457 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a program which is given in MCTS 70-536 exam....but not able to understand its coding...So i need support to learn this...

C#
class Program
    {
        static void Main(string[] args)
        {
            ThreadPool.QueueUserWorkItem(ThreadProc);
            Console.WriteLine("Main thread does some work, then sleeps.");
            Thread.Sleep(5000);
            Console.WriteLine("Main thread exists.");
            Console.ReadLine();
        }
        static void ThreadProc(object a)
        {
            Console.WriteLine("Hello from the thread pool.");
        }
    }

Thanks in advance
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900