Professional Documents
Culture Documents
L 5 Multicore
L 5 Multicore
Multithreading
• Thread : is a process with its own instructions
and data
• It may be apart of a parallel program or
represent an independent program on its own.
• Multithreading: is the execution of multiple
threads simultaneously.
• ILP exploits implicit parallelism while TLP
exploits explicit parallelism
Multithreading
• Multithreading:
– Programs are made up of execution threads
– threads are sequences of related instructions
– In the early days most programs consist of a single
thread
– OS in those days were capable of running only one
such program at a time
– Innovations in the operating system allows running
the programs simultaneously
Multithreading, Hyper-Threading, or Multi-Core
• Hyper-Threading:
– two programs could now run simultaneously on a processor
without swapped in and out
– operating system to recognize one processor as two possible
execution pipelines.
– performance boost of HT Technology was limited by the
availability of shared resources to the two executing threads
– HT Technology cannot achieve throughput of two distinct
processors because of the contention for shared resources
Multicore
• multi-core is a design in which a single physical processor
contains the core logic of more than one processor.
• several such processor “cores” and packages them as a
single physical processor
• goal of this design is to run tasks simultaneously and
achieve greater performance
Multithreading, Hyper-Threading, or Multi-Core
Multi-Core:
Multithreading, Hyper-Threading, or Multi-Core
• Multicore:
– contain two or more distinct cores in the same physical package
– each core has its own execution pipeline
– each core has the resources required to run without blocking
resources needed by the other software threads.
– core design enables two or more cores to run at somewhat
slower speeds and at much lower temperatures
– combined throughput of these cores delivers processing power
greater than the maximum available today on single-core
processors and at a much lower level of power consumption
Advantages
• Occupies less space on PCB
• Higher throughput
• Consume less power
• Cache coherency can be greatly improved
• Performs more operations/sec with less freq
– Ex: 16 core MITRAW processor operates
@425MHz performs 100 times more no of
operations than pentium3 with 600MHz.
Multicore applications
• Data base servers
• Web servers
• Compilers
• Multimedia Applications
• Scientific Applications
• General applications with TLP as opposed to ILP
– Downloading s/w while running Anti virus s/w
– Editing photo while recording TV show.