How shared memory are accessed if we have two processors
trying to acquire the same region.
Answers were Sorted based on User's Feedback
Answer / mohan reddy.k.v
When a memory is shared by more than one process, it must
be protected from simultanious access from many process,
This is called sycronization.In Linux there are many
sycronization techniques such as sephores,spinlocks,
per-cpu , mutex, seqlocks,atomic variables,rcu etc.
| Is This Answer Correct ? | 22 Yes | 0 No |
Answer / sridhar marampudi
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.
| Is This Answer Correct ? | 4 Yes | 0 No |
What is the ipc standard?
What is ipc for pcb?
How to Initialize Semaphores?
What is ipc message?
What is ipc 610 620?
What is ipc$ used for?
Why do we have serial and parallel interface, which one was faster and why and when we should go for this interface.
How do I get typed command history in vi editor
What is Processes Semaphores?
How to Map an Ordinary File?
What is Shared Access to a File?
What is ipc certified?