Answers

Question and Answer:

  Home  Linux IPC

⟩ How shared memory are accessed if we have two processors trying to acquire the same region?

Synchronization should be done to protect the data

corruption by simultaneous writes from two processes

running on two different processors.

Synchronization between two processors is best done with

the help of spinlocks.

When a process on one processor had locked the shared

memory the other process running on the second processor

shall be doing a busy spin until the first process released

the lock. This is the funda of Spin locks.

 139 views

More Questions for you: