mardi 14 octobre 2014

Efficient way to schedule multiple threads from ThreadPool to be exetuted in the future?


Vote count:

0




I want to use threads from ThreadPool to run same procedure at different time. Here is what I am trying to accomplish: 1.add an item to the hash, 2. note the time when item was created, and within X0 minutes 3. go back and remove that item from the hash.


From what I have read, using .Sleep() to delay execution, is terrible idea. What would be better idea ?


(Unfortunately, I can't use Task Parallel Library, and limited only to .NET 3.5)



asked 1 min ago

newprint

1,287






Efficient way to schedule multiple threads from ThreadPool to be exetuted in the future?

Aucun commentaire:

Enregistrer un commentaire