The ThreadPool works with a callback mechanism.
When you call QueueUserWorkItem (For example) you specify a WaitCallback.
When a threadpool thread becomes available, it processes your call, and you
get the result in the callback. At that point the thread is finished with the
workitem and is now available to accept another that's been put in the queue.
Thread.Start has nothing to do with the Threadpool.
Peter
--
Site:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
Short urls & more:
http://ittyurl.net
"Ryan Liu" wrote:
How a thread is reused in thread pool?
Change the context and call theThread.Run() again, and it executes same
threadStart?
Thanks!
Ryan