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

in a VB application, where the data will be stored after manipulation? what is the syntax for that?

1826


hi i am jyoti i have done sap training in sd and master degree in economics have 2 year exp as enduser in (gdms)and 1 year as sd consultant.as contract basis now what i can do for getting job in it industry

1658


1. Consider the following input and generate the object code using single pass assembler. JOHN START 0 USING *,15 L 1,FIVE A 1,FOUR ST 1,TEMP FOUR DC F’4’ FIVE DC F’5’ TEMP DS ‘F END

2361


In OB52 , How to define two open posting period, Like only 5 and 8 posting should be open.. should not open 6 and 7..period..

995


I'm new to ABAP. What is Module pool in SAP?

2124






what is adodb??y it is used for connection of V.B and access??what is ado?dao?

1777


when will triggars the at new event in abap and web dybn pro?

1494


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

1849


what is session state?

1527


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

657


Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?

1476


Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in

1580


How to call a C++ function which is compiled with C++ compiler in C code?

796


What is ur porject Architecture? If anyone ask what i have to specify here..

1491


1. Consider the following code in our example assembly language: ; an example bit of assembly code ROOT: W FATHER FATHER: W SON1 W SON2 SON1: W NIL W NIL ; ---------------------- SON2: W GRANDSON W NIL GRANDSON: W NIL W NIL NIL = 0 Assemble this code carefully following the two pass model, and show the symbol table at the point marked by the dashed line during each pass.

1823