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 / veerendra

While the thread is sleeping in a synchronised block means,
you are locking a resource, there might be 'n' number of
contenders for this resources. If the thread goes to sleep
then other threads or processes contending for the resource
will be blocked infinitely.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the significance of listiterator in java?

1027


What is the generic class?

904


What is scope & storage allocation of static, local and register variables? Explain with an example.

962


Can you use abstract and final both with a method?

1009


What is consumer in java?

919


What is nextline method in java?

974


What is a variable declaration?

927


Can a class have multiple constructors?

961


Explain the JDB in depth & command line.

959


What does int argc char * argv [] mean?

932


Why can we not override static method?

1063


What's the purpose of static methods and static variables?

1033


What is the use of object and class classes?

994


What is a class component?

1114


Explain the difference between runnable and callable interface in java?

1001