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



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

Answer / 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

More Programming Languages AllOther Interview Questions

when we use mantis? how learn mantis?

0 Answers  


Display names and numbers of employees who have 5 years or more experience and  salary less than Rs.15000 using array of structures (name, number, experience and  salary)

0 Answers  


What function would you use to extract characters from a given string?

2 Answers  


To sorting array of 10 elements which sorting is best a)selection b)bubble c)tree sort

2 Answers   HP, Hughes,


WS-NUM PIC S9(05)V(02) SIGN TRAILING SEPARATE MOVE '0050000+' TO WS-NUM The value stored is 00500,00+ MOVE '0050000-' TO WS-NUM Then what is the value will be stored in WS-NUM? Am getting '-00500,00'.....>>> What should I declare to WS-NUM so that I can get correct values for both + & - signs.

0 Answers  


How to print No.of.rows affected after updation using ADO.Net

0 Answers   Tech Mahindra,


What is test execution and when will we start execution please send me one example for this question

0 Answers  


Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage

0 Answers   TCS,


what is database?how to tell 3years boy or girl by using toys?

1 Answers  


WHAT IS THE MEANING OF CONSTANT ...EXEEDS LENGTH LIMIT WHILE COPYING FROM PS FILE TO KSDS

0 Answers  


in IBM PC -AT.WAT AT REFERS TO?

0 Answers   IBM,


Compare any 4 software development life cycle paradigms with each other. Indicate at least one application for each of the paradigms that are suitable to developed using that paradigm.

0 Answers  


Categories