I am looking for a detailed explanation. How Thread.start () internally calls the run () method. I know that its JVM, which internally calls run () using the start () method, and when I started checking the source code of the Thread class, I found these codes below:
public synchronized void start() { if(threadStatus != 0) throw new IllegalThreadStateException(); group.add(this); start0(); if(stopBeforeStart) stop0(throwableFromStop); } private native void start0();
Now that I see that start () calls the native start0 () method, but I donβt see any code related to loading my own code library.
Please help me understand the whole flow of calls.
Thanks Sandeep
Sandy source share