title: Java threads: Is it possible view/pause/kill a particular thread from a different java program running on the same JVM?
body: <p>I have a program 'foo' running different threads, fooT1, fooT2, .. fooTn.</p>
  
  <p>Now if I want write another program 'bar', which could kill the thread fooTr, is that possible?</p>
  
  <p>Reason: One of the thread fooTr tracks product license. If this thread is killed; one may run this product indefinitely. And killing 'foo' itself is tolerable as 'foo' as that is exactly what is being done on license expiry.</p>
  
  <p>System: Fedora Distribution of Linux</p>
  
  <p>Note: The commands which start JVM and program foo are placed in /etc/init.d and anyone who has a decent knowledge of rc.1/rc.2/rc.3 structure can change/add the starting parameters to these.</p>
  
  <p>I hope my question is clear. If not, I can always edit it.</p>