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

Explain about complier design(phases)

1084


Can we instantiate interface in java?

1133


What are strings in physics?

1016


What are the characteristics of Final,Finally and Finalize keywords.

1177


Can the garbage collection be forced by any means?

993


Is space a character in java?

1014


What is ordered map in java?

1015


According to java operator precedence, which operator is considered to be with highest precedence?

1090


What is the Scope of Static Variable?

1236


Can we have multiple public classes in a java source file?

1197


What is intern method in java?

1084


How do you define a singleton class?

1085


What is the inheritance?

975


What is close method? How it's different from Finalize & Dispose?

1066


What do you mean by buffering?

1046