What is synchronization? Why is it used? What are its disadvantages? (2024)

This question is related to Oracle Interview

  • Interview Candidate
  • Sep 28th, 2004
  • 12
  • 18791

Showing Answers 1 - 12 of 12 Answers

It is mechanism that ensures only one thread at a time can access a block of code, which we might cause data courruption if it accessesd by more threads ata time.

Uses: Eleminates data corruption.

Disadvantage: Execution time will be more due to single thread implementation.

See Also
Atomic locks

sajid

  • Oct 8th, 2015

Synchronization we can call only one thread between multiple threads. Ex: ATM transaction

Shailesh Shinde

  • May 25th, 2017

Synchronization makes sure that shared resources or data can be accessed by only one thread at a time while execution. its advantage is that it prevent data inconsistency and disadvantage is that it makes execution slower as it makes other thread wait till current thread completes execution.

Manoj

  • Apr 10th, 2018

Synchronisation is a mechanism to make sure that exactly one thread will execute block with fresh values from main memory i.e. it must execute two way memory barrier. When thread enter into sync block then it must invalidate all values from cache and read from Main memory and vica versa

What is synchronization? Why is it used? What are its disadvantages? (3)

What is synchronization? Why is it used? What are its disadvantages? (4)

Related Answered Questions

Related Open Questions

What is synchronization? Why is it used? What are its disadvantages? (2024)

FAQs

What is synchronization and why is it used? ›

Data synchronization is the ongoing process of synchronizing data between two or more devices and updating changes automatically between them to maintain consistency within systems. While the sheer quantity of data afforded by the cloud presents challenges, it also provides the perfect solution for big data.

What is the disadvantage of synchronization? ›

Disadvantages of Synchronization in Java

Performance Overhead: Synchronization can increase the overhead of a program, as it requires the threads to wait for access to the shared resource, leading to a decrease in overall performance.

What are the advantages and disadvantages of synchronizer? ›

Synchronization makes sure that shared resources or data can be accessed by only one thread at a time while execution. its advantage is that it prevent data inconsistency and disadvantage is that it makes execution slower as it makes other thread wait till current thread completes execution.

What are the advantages of a synchronizing mechanism? ›

The benefits of synchronous transfer include easy operation, low transmission costs, great transmission efficiency, and strong dependability. With synchronous data transfer, high-performance, multifunctional transmission systems are simple to construct.

Why do we need synchronized? ›

The Need for Synchronization

Without proper synchronization, these threads could access and modify the balance simultaneously. This situation is a classic example of a race condition, a problem that arises when multiple threads compete to modify shared data.

Why do people synchronize? ›

Our bodies respond to that by synchronizing brainwaves, heartbeats, and physical movements so we create more endorphins. From walking at the same pace to saying the same joke at the same time, our bonds with other people are strongest when we're in sync. This creates trust and a feeling of community.

What is the problem with synchronization? ›

Synchronization Problems

Picture a scenario where multiple processes are either putting data into the buffer (producers) or taking data out (consumers). The crux is to ensure that a producer doesn't add data to a full buffer, & a consumer doesn't try to remove data from an empty one.

What do you mean by synchronization? ›

Synchronization, in the context of technology and computing, refers to the process of coordinating the activities and states of multiple processes or threads. It's crucial in a multi-threaded or multi-process environment to ensure data consistency and prevent race conditions.

What is problem of process synchronization? ›

One of the primary issues in process synchronization is the occurrence of data races. Data races happen when multiple processes or threads access shared data simultaneously and attempt to modify it. This can lead to unpredictable and erroneous results, making it essential to control access to shared resources.

What are the disadvantages of synchronous data transfer? ›

Disadvantages of Synchronous Transmission
  • The clocks of both the sender and the receiver must operate at the same frequency, simultaneously.
  • Accuracy depends upon the receiver's capacity to accurately and precisely count the received bits.
Oct 1, 2023

What are the disadvantages of synchronous communication? ›

1 Synchronous communication tools

However, they also have some drawbacks, such as requiring everyone to be available at the same time, creating distractions and interruptions, reducing productivity and focus, and causing fatigue and stress.

What are the advantages and disadvantages of synchronous and asynchronous? ›

Hybrid work environments benefit from balancing synchronous (real-time) and asynchronous (flexible timing) communication. Synchronous communication, such as meetings, can lead to fatigue and reduced productivity, while asynchronous methods offer flexibility and focus.

What are the advantages & disadvantages of synchronous motors? ›

Synchronous motors have high efficiency, power factor, and torque. They can also be used as generators or for power factor correction. However, synchronous motors have some drawbacks, such as high cost, complexity, and maintenance.

What is the problem of synchronization in communication? ›

Synchronization is a problem because it requires getting machines in different places running together. This is technically difficult. However, it can result in faster data rates. Therefore, it is problematic for engineers to maintain synchronization.

What is the effect of synchronization? ›

The individual vocal and motor responses became synchronized with the individual beats of the rhythm. The time between stimulus beats determined the modal interresponse time. These results indicate a synchronization effect: ongoing behavior tends to become synchronized with an ongoing stimulus rhythm.

What causes synchronization failure? ›

The typical causes of failure to synchronize are:
  • the grid frequency is unstable or erratic during synchronization;
  • the turbine-generator speed is unstable during synchronization;
Jun 20, 2023

What are the possible effects of wrong synchronization? ›

Poor synchronizing can: Damage the generator and the prime mover because of mechanical stresses caused by rapid acceleration or deceleration, bringing the rotating masses into synchronism (exactly matched speed and rotor angle) with the power system.

Top Articles
Latest Posts
Article information

Author: Allyn Kozey

Last Updated:

Views: 6101

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Allyn Kozey

Birthday: 1993-12-21

Address: Suite 454 40343 Larson Union, Port Melia, TX 16164

Phone: +2456904400762

Job: Investor Administrator

Hobby: Sketching, Puzzles, Pet, Mountaineering, Skydiving, Dowsing, Sports

Introduction: My name is Allyn Kozey, I am a outstanding, colorful, adventurous, encouraging, zealous, tender, helpful person who loves writing and wants to share my knowledge and understanding with you.