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

what is different betweet class and interface in java?

2 Answers   Microsoft, Sun Microsystems,


Can i please VHDL code for D-Latch with clear input ?? (HINT: Set up a “Process” with appropriate sensitivity list to get the desired D-Latch with Clr working.) Inputs and Outputs: entity Lab4b is Port ( Clr, Clk, D : in STD_LOGIC; Q : out STD_LOGIC); end Lab4b;

1 Answers  


what is integration testing in real time applications?

1 Answers   CTS,


what is the difference between conversion and interface in bdc?

1 Answers  


how many languages .net is supporting now?

2 Answers  


It is possible to take number of controls added to form at run-time.ex-when user enter 6, 6 text boxes get added to form,next time number of controls get change as per user number enter. What is code for that?

1 Answers   Honeywell,


why Java is not purely object oriented?

9 Answers   Persistent,


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 is d main diff between the java and .net framework

1 Answers   Wipro,


In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?

1 Answers   DST Global Solutions,


___ method used to move a recordset pointer in nth position in DAG.

1 Answers  


what is throws keyword

2 Answers   IBM,


Categories