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

how can i apply validation without using errorprovider in C# windows application

1 Answers  


Write code to read the records from a file and load any array of size 99?make sure that you take care of all the error conditions?

0 Answers  


Hi can you please help for the following. I have a ASP.Net web page I want to print the whole page how is it possible? I want It in ASP also.Please send me the solutions dipankar.hazari@gmail.com . Thanks in advance.

0 Answers   Philips,


why Java is not purely object oriented?

9 Answers   Persistent,


how do we provide security for web services

0 Answers  






2. What do you mean by DHCP?

1 Answers  


Who is the Best SAS/Clinical Trainer in Hyderabad

1 Answers  


what are other resources are needed for this mantis?

0 Answers  


Fortran cannot have value by reference True or False?

2 Answers   Geometric Software,


hi friends please tel me how to handle the recovery manager(All i.e PopUp ,Application Crach ,Object state,etc) in QTP

1 Answers   IBM,


What is the worst case of AVL tree?

1 Answers  


Binary tree?

1 Answers   Mascot,


Categories