Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

why the sleep method does not leave the lock and wait method
leave the lock

Answer Posted / balamurugan

Wait Method have parameters as MilliSecond after that
particular time over thread start execution.So Wait Method
Leave the Lock.

But in Sleep() have no any parameter so the thread have no
clue to leave the lock . that's y sleep method does not
leave the lock the programmer need to explicitly write
another method like notify() to execute.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is http session in java?

914


Why oracle type 4 driver is named as oracle thin driver?

796


What is an actionevent in java?

899


How do javabeans work?

823


What is the use of jprofiler?

822


Is jdk required for netbeans?

847


What is transient in java?

825


Why is javac not recognized?

819


What if I do not provide the string array as the argument to the method?

854


What is javabeans api?

826


What is the difference between the boolean & operator and the && operator?

887


Is php faster than java?

813


What is numberformatexception in java?

836


What is a stream in java?

873


Differences between intermediate operations and terminal operations of java 8’s stream api?

984