Physics, asked by munishchopra5171, 1 year ago

What are the principles of synchronization? Explain.

Answers

Answered by rectoglynise17
0

The principle of synchronization algorithms is that each node repeats the process of updating its own information using only the information of the neighboring nodes

.

.

.

Ang prinsipyo ng mga algorithm sa pag-synchronize ay nauulit ng bawat node ang proseso ng pag-update ng sarili nitong impormasyon gamit lamang ang impormasyon ng mga kalapit na node

Answered by saniya9343
2
Thread synchronization is defined as a mechanism which ensures that two or more concurrent processes or threads do not simultaneously execute some particular program segment known as critical section. Processes' access to critical section is controlled by usingsynchronization techniques.


In computer science, synchronization refers to one of two distinct but related concepts: synchronization of processes, and synchronization of data. Process synchronization refers to the idea that multiple processes are to join up or handshake at a certain point, in order to reach an agreement or commit to a certain sequence of action. Data synchronization refers to the idea of keeping multiple copies of a dataset in coherence with one another, or to maintain data integrity. Process synchronization primitives are commonly used to implement data synchronization.

The need for synchronization does not arise merely in multi-processor systems but for any kind of concurrent processes; even in single processor systems. Mentioned below are some of the main needs for synchronization:
Forks and Joins: When a job arrives at a fork point, it is split into N sub-jobs which are then serviced by n tasks. After being serviced, each sub-job waits until all other sub-jobs are done processing. Then, they are joined again and leave the system. Thus, in parallel programming, we require synchronization as all the parallel processes wait for several other processes to occur.
Producer-Consumer: In a producer-consumer relationship, the consumer process is dependent on the producer process till the necessary data has been produced.
Exclusive use resources: When multiple processes are dependent on a resource and they need to access it at the same time the operating system needs to ensure that only one processor accesses it at a given point in time.This reduces concurrency.

I HOPE IT WILL HELP YOU DEAR
THANKU
Similar questions