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...

Can we call the Thread.sleep in Synchyronozed block?

Answer Posted / muthusenthil

yes, you can call wait method inside synchronized block but
synchronized block usually allows one by one to penetrate
in.if you call wait method inside it will create a stagnant
circumstance. synchronized block wont allow other threads
inside till this thread in waiting state get notified

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the private method modifier?

1035


What are the different types of java?

991


Which arithmetic operations can result in the throwing of an arithmeticexception?

972


Explain heap sort?

1048


What is super keyword explain with example?

1205


What are triggers in DB? Explain their types. How do they work?

1036


What are keywords in programming?

951


What is e java?

1026


Why declare Main() inside the class in java ?

994


What is user defined exception in Java?

1021


How can I debug the Java security exceptions and AccessControlExceptions?

1094


Explain how can you debug the Java code?

1003


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1169


What is equlas() and hashcode() contract in java? Where does it used?

1055


What is the difference between a static and a non-static inner class in java programming?

987