what is mean by synchronization?

Answers were Sorted based on User's Feedback



what is mean by synchronization?..

Answer / uma

synchronized means that in a multiple threaded
environment,a synchronized object does not let two threads
access the same time.this means that one thread cant be
reading while another updates it.the second thread will
instead wait until the first is done.the overhead is
speed,but the advantage is guaranteed consistency of data..

Is This Answer Correct ?    4 Yes 1 No

what is mean by synchronization?..

Answer / p.nanda kishore

Synchronization is a process of accessing a shared resource in a multithreaded environment by one thread at a time.

Generally in Multithreaded applications all the threads start execution at a time(i.e doing multiple task at a time) . In this situation we need a piece of code to used by one thread at a time then we need to use Synchronization.

When a thread access a Synchronized code it establishes lock with that code and all the other threads will be there in waiting state. The Lock will be released once the thread as finished it task and other thread waiting will acquire the lock.

Is This Answer Correct ?    3 Yes 0 No

what is mean by synchronization?..

Answer / ravi ranjan

Synchronization is capability to control multiple thread for
any share resources

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

Does a class inherit the constructors of its superclass in java programming?

0 Answers  


Can we declare an array without size in java?

0 Answers  


What are the advantages of defining packages in java?

0 Answers  


How many types of JVM's (OR) Name of the JVM's which are used in Tomcat & Weblogic servers ?

1 Answers   TCS,


Define jre i.e. Java runtime environment?

0 Answers  






What are advantages and disadvantages of OOPs?

0 Answers   Amdocs,


What is the flag in java?

0 Answers  


java program with complete 4 oops concepts implemented example

0 Answers   Infosys, NIIT,


What does main method?

0 Answers  


Is it possible to instantiate the abstract class?

0 Answers  


Explain the selection sort algorithm?

0 Answers   Hexaware,


What is volatile data type?

0 Answers  


Categories