C# WaitCallBack - ThreadPool
.net, c#, multithreading
Solution
The WaitCallback in this case represents a pointer to a function that will be executed on a thread from the thread pool. If no thread is available it will wait until one gets freed.
Problem
What is the exact purpose of WaitCallback delegate ? ``` WaitCallback callback = new WaitCallback(PrintMessage); ThreadPool.QueueUserWorkItem(callback,"Hello"); static void PrintMessage(object obj) { Console.WriteLine(obj); } ``` Can i mean "Wait" in the "TheadPool" until thread is availabe.Once it is available execute the target?