Multiprocessing Flashcards

1
Q

What is a single-core processor ?

A
  • Has only one CPU
  • Can only execute one task at a time
  • reduce heat and power consumption compared to multicore processor
  • as clock speed increases, power consumption + heat generation becomes a challenge
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a multicore processor ?

A
  • Two or more independent cores (CPUs) in a single chip
  • Each core can execute it’s own thread or tasks independently
  • Has parallelism, where multiple cores allow simultaneous execution of multiple threads, improving performance for multi-tasking
  • Terms of energy efficient, multi core achieves better performance per watt compared to single core that runs at higher frequency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Single vs Multiple Core

A

PROCESSING UNITS –> ONE CORE | TWO OR MORE COES

PERFORMANCE –> Handle one task at a time | Can handle multiple tasks simultaneously

POWER EFFICENCY –> Less efficient as clock speed increases | More efficient because has multiple cores and runs at lower clock speed

HEAT GENERATION –> Produces less heat | Produces more heat

Multitasking –> Time-sharing mechanisms | True Parallel execution

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

What are the 3 types of multiprocessing architecture

A
  1. Symmetric Multiprocessing
  2. Asymmetric Multiprocessing
  3. Distributed MultiProcessing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is symmetric processor (SMP)

A
  • All processors share a single memory and are treated equally
  • Any processors can perform any tasks and have equal access to memory and I/O devices
  • Processors share the same memory space and OS (operating system)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Challenges in SMP

A
  • Memory bottleneck: As processors share same memory, there can be contention when multiple cores access the same data
  • Cache coherence: Ensuring all cores have the most up-to-date data can be challenging
  • Scalability Issues: Adding too many cores reduces performance due to overhead in communication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Solutions in SMP

A

Use multi-level cache (L1, L2,L3) to reduce memory access delay

Use cache coherence protocol such as MESI (Modified, Exclusive, Shared, Invalid)

Use hyper-threading and optimize software

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

What is Asymmetric Processor (AMP)

A

One processor acts as the “Master” controlling the system and assigning tasks to “slave” processors

Processors are not equal in functionality or capability

Processors may run different operating system or perform specialized tasks

Only master processor has full access to system resources

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

Challenges in AMP

A
  • Single point of failure: If master processor fails, entire system stops functioning
  • Load imbalance: The master processor can become bottleneck if it fails to assign tasks efficiently
  • Less flexible as slave processors are limited in their role
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Solutions in AMP

A
  • Have a backup master processor and ready to overtake if needed
  • Use dynamic scheduling algorithm to balance workload
  • Use hardware-based task schedulers to offload scheduling tasks from the master processor

-

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

Distributed Multiprocessing

A
  • Processors communicate each other via message passing
  • Processors do not share the same memory, each has own local memory
  • Communication happens through interconnection networks (E.x.: Ethernet)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Disadvantages in Distributed Multiprocessing

A

Requires Complex programming
Communication latency becomes bottleneck

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

What is load balancing

A
  • Efficient distribution of tasks of workloads across multiple processors
  • To maximize performance and minimize bottlenecks
  • Ensures all processors are utilized effectively
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly