Starting a background thread using the Threadpool

Here is a quick and easy way of starting a background process using the Threadpool by way of an inline delegate.

ThreadPool.QueueUserWorkItem(new WaitCallback(
delegate(object stateInfo)
{
    saveToDB();
}));         
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
«May»
SunMonTueWedThuFriSat
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456