jQuery in Action, 3rd edition
The moose likes Threads and Synchronization and the fly likes Stopping java thread using kill command line Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic

Stopping java thread using kill command line

tarik elberrak

Joined: Feb 19, 2006
Posts: 6
Hi all,

I'have run may thread (class implementing Runnable)using a shell script and stored the PID in a file so I can use it to stop the process using the kill command.
my thread open some resources, like an rvd (Tibco RVD), so when killing the process using the kill method, my rvd is still running.
my question is : which Exception must be catched when shutting down a java thread using the kill command line, so I can close my rvd connection int it.

Kinds regards
Henry Wong

Joined: Sep 28, 2004
Posts: 20380

Please do not crosspost. It wastes people's time and effort.

I'm closing this topic as the other topic has a response.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Stopping java thread using kill command line
It's not a secret anymore!