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

Is set ordered?

1037


What is the flag in java?

1113


What are user defined exceptions?

1094


What is an interface in java? Explain

1286


What is the advantage of preparedstatement over statement?

1168


What is the super void?

956


Explain access specifiers?

1243


What is the use of predicate in java 8?

1023


how is final different from finally and finalize in java?

1109


What is the difference between actual and formal parameters?

1004


What is the difference between array list and vector in java?

982


Is alive in java?

1012


What is a generic type?

1057


How many types of memory areas are allocated by jvm?

1086


What is the generic function?

1041