Q. Show Advantages and Disadvantages of Shared Memory Programming?
Advantages of Shared Memory Programming
- Data sharing between processes is both rapid and uniform because of the proximity of memory to CPUs
- Insignificant process communication overhead
- Global address space offers a user-friendly programming perspective to memory
- No need to specify explicitly the communication of data between processes
- More intuitive and easier to learn
Disadvantages
- Difficult to manage data locality
- User is responsible for specifying synchronization e.g. locks
- Not portable
- Scalability is limited by the number of access pathways to memory