diff --git a/Program1/padded/notes.md b/Program1/padded/notes.md deleted file mode 100644 index 9807db9..0000000 --- a/Program1/padded/notes.md +++ /dev/null @@ -1,12 +0,0 @@ -# CS 491 Lecture 5 - -## Shared Memory - -- Permissions - - 0666 Gives everyone rw access to the memory -- Detatching - - Need to detatch the shared memory or it will persist. -- Tools - - ipcs - - Shows shared memory segments and owners - - t \ No newline at end of file diff --git a/notes.md b/notes.md new file mode 100644 index 0000000..c21d765 --- /dev/null +++ b/notes.md @@ -0,0 +1,25 @@ +# CS 491 Lecture 5 + +## Shared Memory + +- Permissions + - 0666 Gives everyone rw access to the memory +- Detatching + - Need to detatch the shared memory or it will persist. +- Tools + - ipcs + - Shows shared memory segments and owners + - t + +## Parallelism + +- There's an equation to calculate how parallelizable an algorithm is. +- Granularity + - The frequency of interaction among threads or processes. +- Locality + - Temporal locality + - memory references that are clustered in time. + - Spacial locality + - memory references that are clustered by address + - Algothitms wich access blocks of data exhibit spacial locality and are preferred + - use of local memory to hold intermediate values improves locality. \ No newline at end of file