Click here to Skip to main content
15,920,576 members

Comments by Tirmit (Top 13 by date)

Tirmit 27-Apr-11 14:57pm View    
or if simplier I press a start button there is a class with the body of a thread ,thread works and then stops,cause there is a sleep method in his body,then when timer elapses it should wake up)
Tirmit 27-Apr-11 14:53pm View    
nevermind it doesn't work) I start 5 threads from my form,each thread is a philosopher ,
the problem is that timer is created inside my thread ,cause there is a method that should be called when time is elapsed...
may be it's better to create a list of 5 threads with timers ,so that when i need it ,I will start a the thread with a time,calling it with the help of delegate,but how to get that it has elapsed and call the method that is in a class of a thread?
Tirmit 27-Apr-11 14:19pm View    
i also use Monitor in this programm but for other purposes,can i use it too?
Tirmit 27-Apr-11 14:06pm View    
can i make a *cheat* to stop timer before the method and to count down 10 ms for each itteration ,so that when it is about 0 ,I will stop the pause?
Tirmit 27-Apr-11 13:57pm View    
i just need one of my threads to wait for some time and if the timer elapses it should wake up