Shared memory model

In the case of shared memory models, multiple processors share a single common memory space. Since multiple processors share memory space, there needs to be some synchronization measures in place to avoid data corruption and race conditions. As we have seen so far in this book, synchronization comes with performance overheads. The following is an example representation of the shared memory model. As you can see, there are n processors in the arrangement, all of which have access to a commonly shared memory block:

The features of the shared memory model are as follows:

  • All the processors have access to the entire memory ...

Get Hands-On Parallel Programming with C# 8 and .NET Core 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.