What is process Synchronization with example?

What is process Synchronization with example?

How Process Synchronization Works? For Example, process A changing the data in a memory location while another process B is trying to read the data from the same memory location. There is a high probability that data read by the second process will be erroneous.

What is process Synchronization?

Process Synchronization is a way to coordinate processes that use shared data. It occurs in an operating system among cooperating processes. While executing many concurrent processes, process synchronization helps to maintain shared data consistency and cooperating process execution.

What are the types of process Synchronization?

On the basis of synchronization, processes are categorized as one of the following two types:

  • Independent Process : Execution of one process does not affects the execution of other processes.
  • Cooperative Process : Execution of one process affects the execution of other processes.

What is power synchronization?

In an alternating current electric power system, synchronization is the process of matching the frequency of a generator or other source to a running network. If two unconnected segments of a grid are to be connected to each other, they cannot exchange AC power until they are brought back into exact synchronization.

Which is synchronization tool?

Explanation: Semaphore is a synchronization tool. Semaphore is a mechanism which synchronizes or controls access of threads on critical resources. There are two types of semaphores i) Binary Semaphore ii) Counting Semaphore. Explanation: A semaphore is a shared integer variable that can not drop below zero.

How are two processes described in process synchronization?

Process is categorized into two types on the basis of synchronization and these are given below: Two processes are said to be independent if the execution of one process does not affect the execution of another process. Two processes are said to be cooperative if the execution of one process affects the execution of another process.

How does the synchronization model in Microsoft Office work?

Files in this configuration can be synchronized using the check-out/check-in model. When the change is completed, the complete configuration is stored back into the repository and integrated with other changes. The change set model also works based on change requests and has a lot in common with the long transactions model.

How is a semaphore used for process synchronization?

A semaphore is a signaling mechanism and a thread that is waiting on a semaphore can be signaled by another thread. This is different than a mutex as the mutex can be signaled only by the thread that called the wait function. A semaphore uses two atomic operations, wait and signal for process synchronization.

How is mutual exclusion ensured in process synchronization?

Mutual Exclusion is assured as only one process can access the critical section at any time. Progress is also assured, as a process outside the critical section does not block other processes from entering the critical section. Bounded Waiting is preserved as every process gets a fair chance. It is limited to 2 processes.