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 does the type system works when there is interoperability between a COM and .Net, i mean what exactly happens there

0 Answers   247Customer,


I want Ada programming language books. Could anyone post me any link for that?

0 Answers  


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

0 Answers   TCS,


What is the client concept in SAP? What is the meaning of client independent?

3 Answers  


plz send me NIC Scientific Officer /Engineer-SB(Programmer) previous question paper or syllabus

2 Answers   NIC,


what do you man by firmware

4 Answers  


HTML is a subset of

8 Answers  


What do you mean by an array ? explain with an example

7 Answers  


How should a programmer decide whether to use a macro or a subroutine to accomplish a given logical function

1 Answers   R V College of Engineering, University of Jordan,


if 3 duplicate records, by keeping one original and one duplicate record, and how to delete remaining 2 duplicates in sql server 2008

0 Answers  


9. Read the function conv() given below conv(int t) { int u; u=5/9 * (t-32); return(u); } What is returned (a) 15 (b) 0 (c) 16.1 (d) 29

2 Answers   TCS,


what do u mean by html

5 Answers   Infosys,


Categories