You are on page 1of 2

Synchronization: making two or more data storage devices or programs (in the same or different computer) having exactly

the same information at a given time.


Process of OR

is a process that involves coordinating the execution of multiple threads to ensure a desired outcome without corrupting the shared data and preventing any occurrence of deadlocks and race conditions. Synchronization also occurs between network nodes to ensure that data streams are received and transmitted correctly, and to prevent data collision. It usually uses a clock signal transmitted in sequence with a data stream to maintain proper signal timing.
Types:

There are two types of synchronization: data synchronization and process synchronization:

Process Synchronization: The simultaneous execution of multiple threads or processes to reach a handshake such that they commit a certain sequence of actions. Lock, mutex, and semaphores are examples of process synchronization. Data Synchronization: Involves the maintenance of data to keep multiple copies of data coherent with each other, or to maintain data integrity. For example, database replication is used to keep multiple copies of data synchronized with database servers that store data in different locations Need: Synchronization forms the basis of the execution of multiple threads asynchronously in a multithreaded application. It provides the means to achieve the sharing of resources such as file handling, network connections and memory by coordinating threads and processes to avoid data corruption..

Difference between Synchronous and Asynchronous Transmission


Serial communication occurs in either synchronous or asynchronous format. In synchronous transmission a receiver and a transmitter are synchronized and a block of character is transmitted along with the synchronization transmission while asynchronous transmission is character oriented means each character carries start and stop bits . Asynchronous transmission is used for high speed transmission (more than 20 kbps) while asynchronous transmission is generally used in low speed transmission. (less than 20 kbps). In asynchronous transmission when no data transmitted a receiver stays high at logic 1 called mark. Logic 0 is called space. Transmission begins with one start bit followed by a character and one or two stop bits.

You might also like