What is synchronization? How it can be achieved?

Answer Posted / ravikiran(aptech mumbai)

synchronization is the process of allowing only one thread
at a time.It's been achieved by marking the method as
synchronized or locking a particular portion of code

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of assembly language?

503


Is alive method in java?

508


What is the difference between object oriented programming language and object based programming language?

560


What is the syntax and characteristics of a lambda expression?

563


Can we call a non-static method from inside a static method?

564






How can we make a class singleton?

582


When does a class need a virtual destructor?

532


How do you write methodology?

566


Where is const variable stored?

538


What is an immutable object?

587


What is primitive data type in java?

545


What is the purpose of file class?

550


How many bits is size_t?

545


What is Java Shutdown Hook?

617


What is difference between array and arraylist in java?

466