Question: Atomic instructions such as compare-and-swap and test-and-set also execute a memory fence as part of the instruction on many architectures. Explain what is the motivation
Atomic instructions such as compare-and-swap and test-and-set also execute a memory fence as part of the instruction on many architectures. Explain what is the motivation for executing the memory fence, from the viewpoint of data in shared memory that is protected by a mutex implemented by the atomic
Instruction.
Also explain what a process should do before releasing a mutex.
Step by Step Solution
3.36 Rating (165 Votes )
There are 3 Steps involved in it
When multiple processes are sharing data in memory it is important ... View full answer
Get step-by-step solutions from verified subject matter experts
