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

Why singleton class is used in java?

1146


How do you get the length of a string in java?

1018


What are the restrictions that are applied to the java static methods?

998


What do you understand by an io stream?

1055


How to write custom exception in java?

1066


What is the purpose of the file class in java programming?

1037


What do you mean by stream pipelining in java 8?

1242


What is a class reference?

1114


What is a text string?

1096


Which package is always imported by default?

1105


List some java keywords sun like c, c + + keywords?

1012


Can we have this () and super () together?

1051


What does the string method compareto () do?

1068


Can we return null in java?

1166


How many java versions are there?

1062