added notes about parallelism

This commit is contained in:
Ziad Arafat committed 2021-10-04 01:49:58 -06:00
1 parent 4bfbe6f874
commit b81df9529c
2 files changed
+25 -12

No files matched your search

+25
View File
@@ -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.