I am new to the concept of multithreading, and there is an obscure aspect.
There are two ways to create and start a stream:
- Extend the Thread class and
start()thread. - Create a Runnable object, pass it to the constructor
Threadand start()thread.
And this blog post says that we should always start the thread with help start()or so was my impression of it.
But in one of the answers here you could see how a person uses runnable.run(). This gives the impression of improper practice.
This is normal? Should this be avoided? You may be explicit in your reply, but any suggestions will be appreciated.
source
share