The stop() method in Thread class is a deprecated method. Its use is
not recommended.
When we call stop() method, the thread unlocks all monitors that it
has acquired. If any locked object was in an inconsistent state, this
state gets visible to all other threads.
It can cause unexpected behavior when other threads work on this
inconsistent object.
So calling stop() method to stop a thread is not advisable.
https://www.tutorialspoint.com/how-can-we-stop-a-thread-in-java