Hi!
I really need some code examples here... What I am trying to do:
GetCollectionFromDatabase
foreach item
{
resetEvents[i] = new ManualResetEvent(false);
var makeRequest = new MakeRequest(resetEvents[i]);
ThreadPool.QueueUserWorkItem(new WaitCallback(makeRequest.ThreadPoolCallback), i);
}
db.Save();
ThreadPoolCallback
{
update/delete the row
}
Is this the right appoach? Do I pass in the db as a ref to the ThreadPoolCallBack?
Thanks!
/Mike