I really need code examples here ... What I'm 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 thing to do? I pass in db as a link to ThreadPoolCallBack?
source
share