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

Submitted by: Administrator
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.
Submitted by: Administrator

Read Online Linux IPC Job Interview Questions And Answers