Thread wait time
Hi all, I need to make my thread sleep after certain amount of time. There are around 30 threads running. If my thread is in waiting state for some time, i am not able to know the time how much time it has to sleep. my problem is to find how much time the current thread is in waiting state to make it sleep the rest of the time. Please help me regarding this.
[367 byte] By [
mullapudia] at [2007-11-27 9:33:02]

# 2
I am not able to understand your question. We can try rephrasing it : Let's say a thread goes to sleep for 1500ms. Subsequently, after elapsing 500ms, thread will continue to sleep for another 1000ms. So, at the end of elapsed 500ms, if you query for remaining sleep duration of the thread you must get 1000ms. Is this what you meant ?
java_a at 2007-7-12 22:53:09 >
