Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to killi thread and stop java.util.Timer?

916217Mar 5 2012 — edited Mar 7 2012
Hi,

I have and array list, this list contains my objects (extended from Thread) and these threads use Timer (java.util.Timer).

In certain time i need to find the object in array list, destroy this concrete thread and immediately stop the timer.

I'm not sure what is the best way how to a) destroy the thread and b) stop timer.

Could you advise me what technique to use?

Thanks.
This post has been answered by morgalr on Mar 6 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2012
Added on Mar 5 2012
27 comments
1,280 views