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 adapter in java?

975


What are measurable parameters?

1132


What comes to mind when someone mentions a shallow copy in java?

1165


Is there any case when finally will not be executed?

1003


How to check if a list is sorted in java?

1089


Is integer immutable in java?

1050


'A class is a template for an object' explain this statement.

1101


What are the different ways of implementing thread? Which one is more advantageous?

1043


What do you understand by casting in java language?

1078


Can we have multiple classes in single file ?

1117


What is the function of character?

1110


Can we call virtual funciton in a constructor ?

2239


Where are register variables stored?

1053


Name and explain the types of ways which are used to pass arguments in any function in java.

1129


What is a modifier?

1602