A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
Threads and Synchronization
kill a running threads
Joined: Dec 21, 2005
Dec 21, 2005 15:30:00
Need some help here. How do we kill a running threads after elapsing a settime say about 5 hours?
I want to use some JVM parameter to do this, i mean without modify code.
Any help is appreciated.
Joined: Jan 29, 2003
Dec 22, 2005 07:31:00
I think you're out of luck trying to kill one thread. You could kill a whole application (JVM) from the command line but that doesn't sound like what you're after.
What is the thread doing? Are you completely unable to change any code?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
It is sorta covered in the
JavaRanch Style Guide
subject: kill a running threads
If not listening to socket but might later, kill threads in pool, recreate?
How to kill a child thread from its parent?
how to kill a process(I know the port in which it runs)
OutOfMemory error QUESTION
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015