In Java to run a separate thread we have to implement Runnable interface or extend Thread class, so in effect only the method Run() can be used to start up a new thread.
In C# we can call up any method to run up as a new thread using
new Thread(target function);
so in effect in Java we end up creating a separate class for a function to be able to run as a Thread.
So is there a way to avoid that ?
I want to avoid any changes in the architecture and the method itself isn’t very lengthy, its just two loops which are time consuming.
As far as my Java knowledge goes: the only way to run a thread is to call run() via any of the supplied ways such as the ones you named.
You can however just put a call to your method inside the run. Then you don’t change much of your architecture as well.