mirror of
https://github.com/RustyRaptor/parallel-programming.git
synced 2026-12-03 15:55:15 -07:00
added notes about parallelism
This commit is contained in:
1 parent
4bfbe6f874
commit
b81df9529c
2 files changed
+25
-12
No files matched your search
@@ -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
|
||||
@@ -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.
|
||||
Reference in new issue
Block a user