The likely intention of a user calling Thread.run()
is to start the execution of code within a new thread. This, however, is not what
happens when this method is called.
The purpose of Thread.run()
is to provide a method that users can overwrite to specify the code to be executed. The actual thread is
then started by calling Thread.start()
. When Thread.run()
is called directly, it will be executed as a regular method within
the current thread.