Multithreading - Intro to Computer Architecture - Lecture Slides, Slides of Computer Architecture and Organization
During the course work of the Intro to Computer Architecture, we study the main concept regarding the:Multithreading, Pipeline Hazards, Peripheral Processors, Simple Multithreaded Pipeline, Multithreading Costs, Thread Scheduling Policies, Coarse-Grained Multithreading, Multithreading Design Choices, Instruction Format
Download Multithreading - Intro to Computer Architecture - Lecture Slides and more Slides Computer Architecture and Organization in PDF only on Docsity!
Every cycle, one instruction from one activethread is launched into pipeline
Instruction pipeline is 21 cycles long
At best, a single thread can issue oneinstruction every 21 cycles - Clock rate is 260MHz, effective single thread issuerate is 260/21 = 12.4MHz
MTA Pipeline
MIT Alewife
Modified SPARC chips
register windows hold different threadcontexts
Up to four threads per node
Thread switch on local cache miss
IBM PowerPC RS64-III
(Pulsar)
Commercial coarse-grain multithreading CPU
Based on PowerPC with quad-issue in-orderfivestage pipeline
Each physical CPU supports two virtualCPUs
On L2 cache miss, pipeline is flushed andexecution switches to second thread - short pipeline minimizes flush penalty (4 cycles),small compared to memory access latency - flush pipeline to simplify exception handling
Superscalar Machine
Efficiency
Why horizontal waste?
Why vertical waste?
Vertical Multithreading
Cycle-by-cycle interleaving of secondthread removes vertical waste