Memory Flashcards

1
Q

What are the two main types of shared memory?

A
  1. Uniform Memory Access
  2. Non-Uniform Memory Access (NUMA)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is SMP?

A

Symmetric Multiprocessing OR Shared-Memory Multiprocessing : computer processing done by multiple processors that share a common operating system (OS) and memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Give 3 advantages of using a shared memory system.

A
  1. User-friendly programming - easy access of variables.
  2. Fast and uniform data sharing can be obtained.
  3. Better performance for small systems with 10-100 processors.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Give 2 disadvantages of using a shared memory system.

A
  1. Scalability is difficult and costly.
  2. Programmer must ensure correct access to global memory by using synchronization constructs to prevent non-deterministic conditions, etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give 3 advantages of using a distributed memory system.

A
  1. Easier for scalability –> processors are directly proportional to memory.
  2. Cost effective.
  3. Preferred for larger systems of 100-1000 processors.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give 2 disadvantages of using a distributed memory system.

A
  1. Data communication between processors is difficult –> programmer should handle it.
  2. Time for accessing memory will not be uniform.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between shared memory and distributed memory?

A
  • In shared memory the processors have a shared global address space that is accessible to all N processors.
  • In distributed memory each processor has a private/local memory.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Draw diagrams of each of the 4 parallel machines.

A

<draw>
1. SISD
2. SIMD - global clock to sync lockstep
3. MISD
4. MIMD
</draw>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

List the 4 memory access models in shared memory computers

A
  1. EREW
  2. ERCW
  3. CREW
  4. CRCW
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Calculate the time complexity of a parallel array sum program for each of the shared memory access models.

A
  • do. - slides–> L03-18
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

List 5 methods used for conflict resolution in shared memory computers and explain each.

A
  1. Arbitrary choice - select a write value from one processor randomly or based on a priority.
  2. Priority - select value based on priority value assigned to processor.
  3. Sum - sum of all values from all processors.
  4. Min/Max - select the min/max of all values
  5. Common value - only update if all values from all processors requesting to write are the same.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly