answersLogoWhite

0

What is synchronize in java?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

Synchronization is a feature by which only one thread can access a resource in a particular time of instance. No other thread can interrupt for that resource. In java to make our method synchronize we use synchronized keyword with that method.

So Synchronization is just managing the resources among Threads.

Vijai Shanker

Just to add with the invent of Java 5 we have more option to write synchronized code in Java instead of using synchronized keyword we can use Lock Classes available in concurrency package.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

synchronized is a key word in java that is used while implementing multi threading to avoid deadlocks and dirty writes. A synchronized method can be accessed at a time by only one thread and all other threads have to wait. this ensures that data that is accessed by a method is consistent and does not get modified while it is being read.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is synchronize in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How does one get java synchronized?

The Java program needs to be synchronized. Doing so can be complicated, but can be done. The best way to synchronize would be using the website and walk through the steps.


Where can one find a guide on how to synchronize Java?

There are a number of websites which specialise in Java tips and how-to guides. Websites from AvaJava, CSC and JavaMex are just some of the websites available as well as blogs such as that from 'Javarevisited'.


What the prefix of synchronize?

The prefix of synchronize is "syn-", which means "together" or "with."


What is the root word of synchronize?

The suffix of synchronize is -ize. The suffix is the bit at the end of the word.


What are servlets and where can they be downloaded?

Servlets are something that can handle multiple requests on-line. They can synchronize things such as conferencing and other networking components depending on the protocols. They can be downloaded from several websites for example java.


How many syllables are there in synchronize?

There are three syllables in synchronize.


What is the past tense of synchronize?

Synchronized is the past tense of synchronize.


Need a sentence for synchronize?

I am about to synchronize my watch to the atomic clock.


What part of speech is synchronize?

The word synchronized is a verb. It is the past tense form of the verb synchronize.


What are some example sentences we can use for the word synchronize?

Lets synchronize our watches.


What are some ways to synchronize folders?

There are several ways that some one can synchronize folders. Depending on what a persons preference is they can synchronize by color, shape, or content.


How do you synchronize between outlook and Gmail contacts?

You can synchronize mail between Outlook and Gmail. You have to put your credentials inside the Outlook. This will automatically synchronize it on the desktop.