javaLearner wrote:Then that suggests that there isn't any difference /correlation -- whatever you meant by that. Perhaps your question is like asking for the difference between a fish and a bicycle.
The thing that I am trying to understand is - the difference / correlation between the two methods mentioned.
In the javadoc, there is a mention of correlation between the LockSupport methods park, unpark and the Thread methods suspend, resume - but not park and sleep.
Also, I would like to understand the statementAgain, you're going to have to explain what you don't understand about it.
These methods are designed to be used as tools for creating higher-level synchronization utilities, and are not in themselves useful for most concurrency control applications. (from the javadoc)
javaLearner wrote:Could someone please explain the difference between LockSupport.parkUntil and Thread.sleep methods.I would say semantically both methods are the same: