• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with Timer  RSS feed

 
rahul vasishta
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any command or combination of commands available on unix/linux to kill a java.util.timer?

Please help
Rahul
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A java.util.Timer runs in a thread inside the JVM. Therefore, I doubt that you can a) identity, and b) then kill this thread from outside the JVM.

Is there any reason you can't call cancel() on your Timer from within your application itself?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!