Thread runnableInst = new Runnable(){ public void run(){}};
Thread thread1 = new Thread(runnableInst);
Thread thread2 = new Thread(runnableInst);
thread1.start();
thread2.start();
Is it fine to start two thread on the same Object runnableInst ?
Is it good to make this kind of design?
Yes, you can do this but one thing to watch is that both threads will be accessing the instance data of the
runnableInst. So you will have to make sure that access is synchronised where necessary.