Of course I Tried!!!
In fact, the interrupt method works if the inner Thread remains slept for a long time, for example, if I sleep a Thread into an infinite loop like this
while (true){
Thread.getCurrentThread().sleep(x milis);
}
The result of interrupting the thread is the finalization of the while loop and the processing of the following lines of code. But that's not the situation I'm trying to solve.
I want to make the execution stop finally without processing more instructions.
Anyway, thanks for your replies.
PD. Excuse the written code. I'm not sure this particular method exists in that way..... sorry....