---
title: "What is synchronization in respect to multi-threading in Java?"  
description: "What is synchronization in respect to multi-threading in Java?"  
author: "Anonymous User"  
published: 2015-01-26  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/2311/what-is-synchronization-in-respect-to-multi-threading-in-java  
category: "java"  
tags: ["thread", "multiple threading", "synchronization"]  
reading_time: 1 minute  

---

# What is synchronization in respect to multi-threading in Java?

With respect to multi-threading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one Java thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to erroneous behavior or program.

## Answers

### Answer by Anonymous User

With respect to multi-threading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one Java thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to erroneous behavior or program.


---

Original Source: https://www.mindstick.com/interview/2311/what-is-synchronization-in-respect-to-multi-threading-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
