When threads are not lightweight process in java? What happens if an object is directly called by run() instead of Start().
When threads are not lightweight process in java? What happens if an object is directly called by run() instead of Start().
Share
If you call run method directly , it won’t create a new thread and it will be in same stack as main. As you can see when we are directly calling run method, it is not creating new threads. You can not directly call run method to create a thread, you need to call start method to create a new thread.