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

Which language they use during interview?

1723


How many forms can you create in a Visual Basic 6 Standard EXE project? Is there any limit on that?

1718


I am taking the bmc control m/enterprise manager 7.0 scheduling test and just wanted to see what kind of questions they would ask or if anyone has taken the test and how long it is for how many questions?

5855


what is the filters in biztakk server? where it can use?

1838


Hi all... I had completed MSC(Computer) and had join the construction company based on sap.they want me to work on abap.but software company is totally different from construction company and they want me 2 grasp it as fast i can.i am finding it difficult.what should i do??????

1584






what are all the validation we need to perform in data stage?

2148


Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren?t present.

833


how to display xisheet in list box in c# .net

1810


What are two of your strengths that you will bring to our QA/testing team?

1821


please any one pass file aid,xpeditor and endeavor tools

2089


i am exeprienced person what is selection process

1335


what is the use MDM(Master Data Management)and meaning

2139


if 2 is passed as an argument to the method,void GC.Collect then what would be the result?

1381


Give examples of macro quoting function?

1732


in teradata level primary in table level allows duplicates why?

1837