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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ipc for pcb?

503


What is ipc$ used for?

569


What is Fast Local Communication?

1048


What is socket in ipc?

552


How to Access a FIFO?

1236






Which is fastest ipc mechanism?

498


What is ipc and its types in linux?

511


How to Controll and Deallocate Shared Memory?

1091


How to Map an Ordinary File?

1096


What is ipc rtos?

592


What is Connection style?

1296


How to Create Pipes?

1273


What is ipc name?

519


What is the ipc 610?

557


What are 3 ipc techniques?

510