Why the these methods
java.lang.Thread.currentThread(),
java.lang.Thread.sleep(),
java.lang.Object.notify(),
java.lang.Object.wait()
of Thread & Object class are not implemented in java API's itself?
Why there was need to make then native method,which are parts of C/C++ programming language?
Is there any region behind that ,or java not able to give good performance?
How would you write code in Java that causes the current Thread to sleep? At some point, you need to delegate to native code since it is the OS that provides and controls threads, not Java.
It might help you to understand that at a certain level, the JVM itself is written in native code, so it can talk to each OS that it runs on in OS- and machine-specific ways.