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...

which one is the best practice using synchronization method
or synchronization block

Answer Posted / prajakta lakhe

synchronization block is the best practice to implement
synchronization. It allows us to synchronize the method whose
source code we dont know. and also this style helps us to
synchronize the particular block of code,where multiple
processes or threads can use a single resource at a time.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When will you use shell script/Perl ahead of C/C++?

1043


qtp 9.2 14 days demo version was expired.I uninstalled how to reinstall this again

2729


Give examples of macro quoting function?

1936


what is an INI file?

2042


I have try to write a record in a TDQ from a fle.... what are the steps to do... can anybody plz come with a solution

2617


is it possible to desable particular parameter of the normal orcle report based on some condition ?????? if yes,wht is the function for desabling a parameter...

2017


Which CRM is better to opt, Sebiel CRM or Salesforce CRM or sap CRM? which institute is best one in hyderabad

2246


will it allow to add same value in HashMap class.

2071


what is the difference between an OS(operating system) and Framework?

1938


Where do we need Operator overloading?

1065


hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern

2033


how to convert hashmap to arraylist with iteration

1819


how to stop execution of step 3 in a job mainframe

2088


What is abstract Method i want the exact definition and is there any possibility to declare class as abstract without any abstract methods in that class?If it is possible then tell me why and how?

1880


Suppose we are doing 4 operations on database using service, first operation is successful but due to some reason remaining 3 operations are failed. I) is this transaction successful or not? ii) How can you give that error message to user?

1912