Open In App

Language Synchronization Mechanism in Distributed Systems

Distributed Systems refers to a network of interconnected computers or entities that work together as a unified system, despite being physically or geographically dispersed or we can say that It is a group of computers that work together to perform a common task, even though they are physically separated and may be located in different places. The computers communicate with each other and share resources such as data and processing power to achieve their common goal.

Synchronization Mechanism

In distributed systems multiple processes or machines work together to achieve a common goal, synchronization is critical to ensure that these processes work in a coordinated and orderly manner. Synchronization mechanisms are essential for ensuring that multiple processes or nodes can access shared resources and communicate with each other correctly and safely.



The synchronization mechanism is categorized into two parts:

  1. Shared Memory synchronization
  2. Message passing synchronization

Shared Memory Synchronization

Shared memory synchronization is important to ensure that multiple nodes can access and modify shared data without causing conflict or inconsistencies.



The method of shared memory synchronization is listed below:

1. Semaphore:

2. Monitor:

3. Serializer:

4. Mutual Exclusion:

5. Path Expression:

6. Locks: 

As the name suggests they are used to provide special peculiar access to a shared resource. A process or thread must first acquire a lock on it where if a lock is acquired over a process no other process can have access to that shared resource. There are several types of locks such as:

Message Passing synchronization 

It involves implementing a protocol to ensure that messages are delivered in the correct order and that all nodes receive the same message.

The method of Message passing  synchronization includes:

Communication sequential process

Remote Procedure call (RPC)

Ada Rendezvous

Article Tags :