Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Originally posted by Dan Temple:
Okay I think I understand. Its not that the InterruptedException kills the thread, but rather within catch InterruptedException, this is where the programmer should write code to ensure that that thread dies. Is this correct?
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Originally posted by Xavier Casals:
So, the ONLY way to exit a thread is exiting its run method?
What happens if it is not possible. For example, if we have a blocking call in the highest level (and the only exceptions that can be caught are the ones thrown by it).
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Originally posted by Kezia Matthews:
Here is a piece of code. I am not able to understand as to why the 'interrupted()' method returns 'false' in the handler for 'InterruptedException'.
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
"I'm not back." - Bill Harding, Twister