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 restrictions are placed on method overriding?

1189


Is singleton class thread safe?

1003


Is java a super set of javascript?

1109


How do you trim a space in java?

990


what is the difference between thread and runnable types? : Java thread

1011


What is difference between call by value and call by reference?

1003


please send me hr interview questions in it industry

2125


Explain access specifiers?

1180


Explain hashset and its features?

1160


What is the ==?

895


What is the difference between serializable and externalizable interface?

1106


What is the purpose of static methods and static variables?

1073


Can java hashmap have duplicate keys?

1035


Can we use return in constructor?

955


Is java hard to learn?

919