i have a time axis implemented by ArrayList. There are a nodes, sorted by time of execution. I want to execute some code, when real time is equal (or greater) with Node.Time
I dont want to wait for time by acitve waitng - something like this>
//ArrayList queue
while (realTime >= Node(queue[0]).Time); /* acitive waitng */ Node(queue[0]).execute(); |
how can i run it with passive waiting
thanks for your ideas

Passive waiting
J.Eubangus
System.Timers.Timer
System.Threading.Timer
System.Windows.Forms.Timer
This discussion (http://msdn2.microsoft.com/library/tb9yt5e6(en-us,vs.80).aspx) should help you in making your decision.