Parallel Processing Flashcards
Week 2.9 (151 cards)
what is a symmetric multiprocessor (SMP)
enhances processing power by using multiple processors under a unified OS
5 key characterisitics of an SMP
- 2 or more processors of similar capability
- Shared main memory and I/O facilities
- Equal memory access time for all processors
- All processors perform the same task
- A single OS manages processors for seamless interaction
4 advantages of SMP
- performance
- availability
- incrementral growth
- scaling
explain how performance is an advantage of
SMP
if tasks can be executed in parallel, an SMP system delivers higher performance than a single-processor
explain how availability is an advantage of SMP
failure of a single processor does not halt the system; it continues running at reduced performance
explain how incremental growth is an advantage of SMP
performance can be enhanced by adding more processors
explain how scaling is an advantage of SMP
vendors can offer systems with different performance levels by varying the number of processors
describe the organisation of SMP
- multiple processors, each with its own CU, ALU, registers & cache
- shared main memory & I/O devices accessible via interconnection mechanism
- processors communicate through share memory or direct signals
- some configurations include private memory & I/O channels for each processor
what is the time-shared bus in SMP
- a simple & common multiprocessor interconnection mechanism
- shared control, address & data lines facilitate communication
- supports DMA transfers
- multiple processors & I/O modules compete for shared memory access
what are the 3 key features that support DMA transfers with the time-shared bus
- addressing - identifies data sources & destinations
- arbitration - resolves competing bus access requests
- time-sharing - one module controls the bus at a time
advantages of bus organisation
- simplicity - same logic as single proccessor
- flexibility - easy to expand
what is the main challenge of bus organisation
performance bottleneck
- all memory references go through a shared bus, limiting speed
- caches (L1, L2, L3) reduce bus traffic BUT cache coherence problem
5 design considerations of SMP
- concurrent execution
- scheduling
- sychronisation
- memory management
- fault tolerance
why is concurrent execution a design consideration of SMP
OS must handle multiple processors running the same routines simultaneously
why is scheduling a design consideration of SMP
assigning ready processes to available processors without conflicts
why is synchronisation a design consideration of SMP
ensuring orderly access to shared memory & I/O resources
why is memory management a design consideration
coordinating paging across processors & utilising multiported memory
why is fault tolerance a design consideration of SMP
handling processor failures gracefully to maintain system stability
what is the problem with cache coherency in multiprocessor systems
inconsistent data across caches
what is a write-back policy
updates only in cache
what is write-through policy
updates both cache & main memory
what is the solution to inconsistent data across caches
cache coherency protocols
what are the 2 types of cache coherence protocols
- software-based
- hardware-based
what are the 2 types of software-based cache coherence protocols
- compiler analysis
- OS & hardware enforcement