SlideShare a Scribd company logo
1 of 36
Parallel Processing
Computer Organizations
Multiple Processor Organization
• Single instruction, single data stream – SISD
• Single instruction, multiple data stream – SIMD
• Multiple instruction, single data stream – MISD
• Multiple instruction, multiple data stream- MIMD
Single Instruction, Single Data Stream - SISD
• Single processor
• Single instruction stream
• Data stored in single memory
Single Instruction, Multiple Data Stream - SIMD
• Single machine instruction
— Each instruction executed on different set of data by
different processors
• Number of processing elements
— Machine controls simultaneous execution
– Lockstep basis
— Each processing element has associated data memory
• Application: Vector and array processing
Multiple Instruction, Single Data Stream - MISD
• Sequence of data
• Transmitted to set of processors
• Each processor executes different instruction
sequence
• Not clear if it has ever been implemented
Multiple Instruction, Multiple Data Stream- MIMD
• Set of processors
• Simultaneously executes different instruction
sequences
• Different sets of data
• Examples: SMPs, NUMA systems, and Clusters
Taxonomy of Parallel Processor Architectures
Block Diagram of Tightly Coupled Multiprocessor
• Processors share memory
• Communicate via that shared memory
Symmetric Multiprocessor Organization
Symmetric Multiprocessors
• A stand alone computer with the following
characteristics
— Two or more similar processors of comparable capacity
— Processors share same memory and I/O
— Processors are connected by a bus or other internal
connection
— Memory access time is approximately the same for each
processor
— All processors share access to I/O
– Either through same channels or different channels giving paths
to same devices
— All processors can perform the same functions (hence
symmetric)
— System controlled by integrated operating system
– providing interaction between processors
– Interaction at job, task, file and data element levels
IBM z990
Multiprocessor
Structure
SMP Advantages
• Performance
—If some work can be done in parallel
• Availability
—Since all processors can perform the same
functions, failure of a single processor does not
halt the system
• Incremental growth
—User can enhance performance by adding
additional processors
• Scaling
—Vendors can offer range of products based on
number of processors
Cache Coherence Problems
Popular solution - Snoopy Protocol
• Distribute cache coherence responsibility among
cache controllers
• Cache recognizes that a line is shared
• Updates announced to other caches
Loosely Coupled - Clusters
• Collection of independent whole uniprocessors or SMPs
— Usually called nodes
• Interconnected to form a cluster
• Working together as unified resource
— Illusion of being one machine
• Communication via fixed path or network connections
Cluster Configurations
Cluster Benefits
• Absolute scalability
• Incremental scalability
• High availability
• Superior price/performance
Cluster Computer Architecture
Cluster v. SMP
• Both provide multiprocessor support to high
demand applications.
• Both available commercially
• SMP:
—Easier to manage and control
—Closer to single processor systems
– Scheduling is main difference
– Less physical space
– Lower power consumption
• Clustering:
—Superior incremental & absolute scalability
—Less cost
—Superior availability
– Redundancy
Nonuniform Memory Access (NUMA)
(Tightly coupled)
• Alternative to SMP & Clusters
• Nonuniform memory access
— All processors have access to all parts of memory
– Using load & store
— Access time of processor differs depending on region of memory
– Different processors access different regions of memory at different
speeds
• Cache coherent NUMA ?
— Cache coherence is maintained among the caches of the various
processors
— Significantly different from SMP and Clusters
Motivation
• SMP has practical limit to number of
processors
—Bus traffic limits to between 16 and 64 processors
• In clusters each node has own memory
—Apps do not see large global memory
—Coherence maintained by software not hardware
• NUMA retains SMP flavour while giving large
scale multiprocessing
• Objective is to maintain transparent system
wide memory while permitting multiprocessor
nodes, each with own bus or internal
interconnection system
CC-NUMA Organization
NUMA Pros & Cons
• Possibly effective performance at higher
levels of parallelism than one SMP
• Not very supportive of software changes
• Performance can breakdown if too much
access to remote memory
—Can be avoided by:
– L1 & L2 cache design reducing all memory access
+ Need good temporal locality of software
• Not transparent
—Page allocation, process allocation and load
balancing changes can be difficult
• Availability?
Multithreading
• Instruction stream divided into smaller streams
(threads)
• Executed in parallel
• There are a wide variety of multithreading designs
Definitions of Threads and Processes
• Threads in multithreaded processors may or may not
be same as software threads
• Process:
— An instance of program running on computer
• Thread: dispatchable unit of work within process
— Includes processor context (which includes the program
counter and stack pointer) and data area for stack
— Thread executes sequentially
— Interruptible: processor can turn to another thread
• Thread switch
— Switching processor between threads within same process
— Typically less costly than process switch
Implicit and Explicit Multithreading
• All commercial processors and most
experimental ones use explicit multithreading
—Concurrently execute instructions from different
explicit threads
—Interleave instructions from different threads on
shared pipelines or parallel execution on parallel
pipelines
• Implicit multithreading is concurrent
execution of multiple threads extracted from
single sequential program
—Implicit threads defined statically by compiler or
dynamically by hardware
Approaches to Explicit Multithreading
• Interleaved
— Fine-grained
— Processor deals with two or more thread contexts at a time
— Switching thread at each clock cycle
— If thread is blocked it is skipped
• Blocked
— Coarse-grained
— Thread executed until event causes delay
— E.g. cache miss
— Effective on in-order processor
— Avoids pipeline stall
• Simultaneous (SMT)
— Instructions simultaneously issued from multiple threads to
execution units of superscalar processor
• Chip multiprocessing
— Processor is replicated on a single chip
— Each processor handles separate threads
Scalar Processor Approaches
• Single-threaded scalar
—Simple pipeline
—No multithreading
• Interleaved multithreaded scalar
—Easiest multithreading to implement
—Switch threads at each clock cycle
—Pipeline stages kept close to fully occupied
—Hardware needs to switch thread context between
cycles
• Blocked multithreaded scalar
—Thread executed until latency event occurs
—Would stop pipeline
—Processor switches to another thread
Scalar Diagrams
Multiple Instruction Issue Processors
• Superscalar
— No multithreading
• Interleaved multithreading superscalar:
— Each cycle, as many instructions as possible issued from
single thread
— Delays due to thread switches eliminated
— Number of instructions issued in cycle limited by
dependencies
• Blocked multithreaded superscalar
— Instructions from one thread
— Blocked multithreading used
Multiple Instruction Issue Diagram
Multiple Instruction Issue Processors
• Very long instruction word (VLIW)
—E.g. IA-64
—Multiple instructions in single word
—Typically constructed by compiler
—Operations may be executed in parallel in same word
—May pad with no-ops
• Interleaved multithreading VLIW
—Similar efficiencies to interleaved multithreading on
superscalar architecture
• Blocked multithreaded VLIW
—Similar efficiencies to blocked multithreading on
superscalar architecture
Multiple Instruction Issue Diagram
Parallel, Simultaneous
Execution of Multiple Threads
• Simultaneous multithreading
—Issue multiple instructions at a time
—One thread may fill all horizontal slots
—Instructions from two or more threads may be
issued
—With enough threads, can issue maximum number
of instructions on each cycle
• Chip multiprocessor
—Multiple processors
—Each has two-issue superscalar processor
—Each processor is assigned thread
– Can issue up to two instructions per cycle per thread
Parallel Diagram
Examples
• Some Pentium 4 (single processor)
—Intel calls it hyperthreading
—SMT with support for two threads
—Single multithreaded processor, logically two
processors
• IBM Power5
—High-end PowerPC
—Combines chip multiprocessing with SMT
—Chip has two separate processors
—Each supporting two threads concurrently using
SMT

More Related Content

What's hot

Allocation of Frames & Thrashing
Allocation of Frames & ThrashingAllocation of Frames & Thrashing
Allocation of Frames & Thrashingarifmollick8578
 
Flynns classification
Flynns classificationFlynns classification
Flynns classificationYasir Khan
 
Lecture 2
Lecture 2Lecture 2
Lecture 2Mr SMAK
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processorMazin Alwaaly
 
Parallel computing and its applications
Parallel computing and its applicationsParallel computing and its applications
Parallel computing and its applicationsBurhan Ahmed
 
Parallel Processors (SIMD)
Parallel Processors (SIMD) Parallel Processors (SIMD)
Parallel Processors (SIMD) Ali Raza
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systemsvampugani
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentationusmankiyani1
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-SystemsVenkata Sreeram
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)Dinesh Modak
 
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureUnit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureBalaji Vignesh
 
Shared Memory Multi Processor
Shared Memory Multi ProcessorShared Memory Multi Processor
Shared Memory Multi Processorbabuece
 
Introduction to parallel_computing
Introduction to parallel_computingIntroduction to parallel_computing
Introduction to parallel_computingMehul Patel
 

What's hot (20)

Parallel Algorithms
Parallel AlgorithmsParallel Algorithms
Parallel Algorithms
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Context switching
Context switchingContext switching
Context switching
 
Allocation of Frames & Thrashing
Allocation of Frames & ThrashingAllocation of Frames & Thrashing
Allocation of Frames & Thrashing
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 
Parallel computing persentation
Parallel computing persentationParallel computing persentation
Parallel computing persentation
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Os Threads
Os ThreadsOs Threads
Os Threads
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processor
 
Parallel computing and its applications
Parallel computing and its applicationsParallel computing and its applications
Parallel computing and its applications
 
Parallel Processors (SIMD)
Parallel Processors (SIMD) Parallel Processors (SIMD)
Parallel Processors (SIMD)
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systems
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
 
Distributed System ppt
Distributed System pptDistributed System ppt
Distributed System ppt
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
 
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureUnit 5 Advanced Computer Architecture
Unit 5 Advanced Computer Architecture
 
Shared Memory Multi Processor
Shared Memory Multi ProcessorShared Memory Multi Processor
Shared Memory Multi Processor
 
Introduction to parallel_computing
Introduction to parallel_computingIntroduction to parallel_computing
Introduction to parallel_computing
 

Similar to Parallel processing

18 parallel processing
18 parallel processing18 parallel processing
18 parallel processingdilip kumar
 
Week 13-14 Parrallel Processing-new.pptx
Week 13-14 Parrallel Processing-new.pptxWeek 13-14 Parrallel Processing-new.pptx
Week 13-14 Parrallel Processing-new.pptxFaizanSaleem81
 
chapter-18-parallel-processing-multiprocessing (1).ppt
chapter-18-parallel-processing-multiprocessing (1).pptchapter-18-parallel-processing-multiprocessing (1).ppt
chapter-18-parallel-processing-multiprocessing (1).pptNANDHINIS109942
 
Operating system 20 threads
Operating system 20 threadsOperating system 20 threads
Operating system 20 threadsVaibhav Khanna
 
Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.pptshreesha16
 
Hardware Multithreading.pdf
Hardware Multithreading.pdfHardware Multithreading.pdf
Hardware Multithreading.pdfrajaratna4
 
Multicore processor.pdf
Multicore processor.pdfMulticore processor.pdf
Multicore processor.pdfrajaratna4
 
chapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.pptchapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.pptaakarshsiwani1
 
CSA unit5.pptx
CSA unit5.pptxCSA unit5.pptx
CSA unit5.pptxAbcvDef
 
Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3AbdullahMunir32
 

Similar to Parallel processing (20)

parallel-processing.ppt
parallel-processing.pptparallel-processing.ppt
parallel-processing.ppt
 
18 parallel processing
18 parallel processing18 parallel processing
18 parallel processing
 
Parallel processing extra
Parallel processing extraParallel processing extra
Parallel processing extra
 
Lecture4
Lecture4Lecture4
Lecture4
 
Week 13-14 Parrallel Processing-new.pptx
Week 13-14 Parrallel Processing-new.pptxWeek 13-14 Parrallel Processing-new.pptx
Week 13-14 Parrallel Processing-new.pptx
 
parallel processing.ppt
parallel processing.pptparallel processing.ppt
parallel processing.ppt
 
chapter-18-parallel-processing-multiprocessing (1).ppt
chapter-18-parallel-processing-multiprocessing (1).pptchapter-18-parallel-processing-multiprocessing (1).ppt
chapter-18-parallel-processing-multiprocessing (1).ppt
 
Operating system 20 threads
Operating system 20 threadsOperating system 20 threads
Operating system 20 threads
 
OS_MD_4.pdf
OS_MD_4.pdfOS_MD_4.pdf
OS_MD_4.pdf
 
unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
 
unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
 
Threads.ppt
Threads.pptThreads.ppt
Threads.ppt
 
Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.ppt
 
Hardware Multithreading.pdf
Hardware Multithreading.pdfHardware Multithreading.pdf
Hardware Multithreading.pdf
 
Multicore processor.pdf
Multicore processor.pdfMulticore processor.pdf
Multicore processor.pdf
 
CA UNIT IV.pptx
CA UNIT IV.pptxCA UNIT IV.pptx
CA UNIT IV.pptx
 
chapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.pptchapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.ppt
 
22CS201 COA
22CS201 COA22CS201 COA
22CS201 COA
 
CSA unit5.pptx
CSA unit5.pptxCSA unit5.pptx
CSA unit5.pptx
 
Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3
 

More from Shivalik college of engineering

More from Shivalik college of engineering (20)

Front pages of practical file
Front pages of practical fileFront pages of practical file
Front pages of practical file
 
Algorithms Question bank
Algorithms Question bankAlgorithms Question bank
Algorithms Question bank
 
Video streaming
Video streamingVideo streaming
Video streaming
 
Infosystestpattern
InfosystestpatternInfosystestpattern
Infosystestpattern
 
Mydbms
MydbmsMydbms
Mydbms
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Net overview
Net overviewNet overview
Net overview
 
java vs C#
java vs C#java vs C#
java vs C#
 
stack presentation
stack presentationstack presentation
stack presentation
 
sear
searsear
sear
 
Dbms lab file format front page
Dbms lab file format front pageDbms lab file format front page
Dbms lab file format front page
 
Question bank toafl
Question bank toaflQuestion bank toafl
Question bank toafl
 
computer architecture.
computer architecture.computer architecture.
computer architecture.
 
SQA presenatation made by krishna ballabh gupta
SQA presenatation made by krishna ballabh guptaSQA presenatation made by krishna ballabh gupta
SQA presenatation made by krishna ballabh gupta
 
Webapplication ppt prepared by krishna ballabh gupta
Webapplication ppt prepared by krishna ballabh guptaWebapplication ppt prepared by krishna ballabh gupta
Webapplication ppt prepared by krishna ballabh gupta
 
Cloud computing prepare by krishna ballabh gupta
Cloud computing prepare by krishna ballabh guptaCloud computing prepare by krishna ballabh gupta
Cloud computing prepare by krishna ballabh gupta
 
Cloud computing kb gupta
Cloud computing kb guptaCloud computing kb gupta
Cloud computing kb gupta
 
comparing windows and linux ppt
comparing windows and linux pptcomparing windows and linux ppt
comparing windows and linux ppt
 
Gsm an introduction....
Gsm an introduction....Gsm an introduction....
Gsm an introduction....
 
Gsm an introduction....
Gsm an introduction....Gsm an introduction....
Gsm an introduction....
 

Recently uploaded

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456KiaraTiradoMicha
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024Mind IT Systems
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfayushiqss
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfVishalKumarJha10
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxalwaysnagaraju26
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 

Recently uploaded (20)

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 

Parallel processing

  • 3. Multiple Processor Organization • Single instruction, single data stream – SISD • Single instruction, multiple data stream – SIMD • Multiple instruction, single data stream – MISD • Multiple instruction, multiple data stream- MIMD
  • 4. Single Instruction, Single Data Stream - SISD • Single processor • Single instruction stream • Data stored in single memory
  • 5. Single Instruction, Multiple Data Stream - SIMD • Single machine instruction — Each instruction executed on different set of data by different processors • Number of processing elements — Machine controls simultaneous execution – Lockstep basis — Each processing element has associated data memory • Application: Vector and array processing
  • 6. Multiple Instruction, Single Data Stream - MISD • Sequence of data • Transmitted to set of processors • Each processor executes different instruction sequence • Not clear if it has ever been implemented
  • 7. Multiple Instruction, Multiple Data Stream- MIMD • Set of processors • Simultaneously executes different instruction sequences • Different sets of data • Examples: SMPs, NUMA systems, and Clusters
  • 8. Taxonomy of Parallel Processor Architectures
  • 9. Block Diagram of Tightly Coupled Multiprocessor • Processors share memory • Communicate via that shared memory
  • 11. Symmetric Multiprocessors • A stand alone computer with the following characteristics — Two or more similar processors of comparable capacity — Processors share same memory and I/O — Processors are connected by a bus or other internal connection — Memory access time is approximately the same for each processor — All processors share access to I/O – Either through same channels or different channels giving paths to same devices — All processors can perform the same functions (hence symmetric) — System controlled by integrated operating system – providing interaction between processors – Interaction at job, task, file and data element levels
  • 13. SMP Advantages • Performance —If some work can be done in parallel • Availability —Since all processors can perform the same functions, failure of a single processor does not halt the system • Incremental growth —User can enhance performance by adding additional processors • Scaling —Vendors can offer range of products based on number of processors
  • 14. Cache Coherence Problems Popular solution - Snoopy Protocol • Distribute cache coherence responsibility among cache controllers • Cache recognizes that a line is shared • Updates announced to other caches
  • 15. Loosely Coupled - Clusters • Collection of independent whole uniprocessors or SMPs — Usually called nodes • Interconnected to form a cluster • Working together as unified resource — Illusion of being one machine • Communication via fixed path or network connections
  • 17. Cluster Benefits • Absolute scalability • Incremental scalability • High availability • Superior price/performance
  • 19. Cluster v. SMP • Both provide multiprocessor support to high demand applications. • Both available commercially • SMP: —Easier to manage and control —Closer to single processor systems – Scheduling is main difference – Less physical space – Lower power consumption • Clustering: —Superior incremental & absolute scalability —Less cost —Superior availability – Redundancy
  • 20. Nonuniform Memory Access (NUMA) (Tightly coupled) • Alternative to SMP & Clusters • Nonuniform memory access — All processors have access to all parts of memory – Using load & store — Access time of processor differs depending on region of memory – Different processors access different regions of memory at different speeds • Cache coherent NUMA ? — Cache coherence is maintained among the caches of the various processors — Significantly different from SMP and Clusters
  • 21. Motivation • SMP has practical limit to number of processors —Bus traffic limits to between 16 and 64 processors • In clusters each node has own memory —Apps do not see large global memory —Coherence maintained by software not hardware • NUMA retains SMP flavour while giving large scale multiprocessing • Objective is to maintain transparent system wide memory while permitting multiprocessor nodes, each with own bus or internal interconnection system
  • 23. NUMA Pros & Cons • Possibly effective performance at higher levels of parallelism than one SMP • Not very supportive of software changes • Performance can breakdown if too much access to remote memory —Can be avoided by: – L1 & L2 cache design reducing all memory access + Need good temporal locality of software • Not transparent —Page allocation, process allocation and load balancing changes can be difficult • Availability?
  • 24. Multithreading • Instruction stream divided into smaller streams (threads) • Executed in parallel • There are a wide variety of multithreading designs
  • 25. Definitions of Threads and Processes • Threads in multithreaded processors may or may not be same as software threads • Process: — An instance of program running on computer • Thread: dispatchable unit of work within process — Includes processor context (which includes the program counter and stack pointer) and data area for stack — Thread executes sequentially — Interruptible: processor can turn to another thread • Thread switch — Switching processor between threads within same process — Typically less costly than process switch
  • 26. Implicit and Explicit Multithreading • All commercial processors and most experimental ones use explicit multithreading —Concurrently execute instructions from different explicit threads —Interleave instructions from different threads on shared pipelines or parallel execution on parallel pipelines • Implicit multithreading is concurrent execution of multiple threads extracted from single sequential program —Implicit threads defined statically by compiler or dynamically by hardware
  • 27. Approaches to Explicit Multithreading • Interleaved — Fine-grained — Processor deals with two or more thread contexts at a time — Switching thread at each clock cycle — If thread is blocked it is skipped • Blocked — Coarse-grained — Thread executed until event causes delay — E.g. cache miss — Effective on in-order processor — Avoids pipeline stall • Simultaneous (SMT) — Instructions simultaneously issued from multiple threads to execution units of superscalar processor • Chip multiprocessing — Processor is replicated on a single chip — Each processor handles separate threads
  • 28. Scalar Processor Approaches • Single-threaded scalar —Simple pipeline —No multithreading • Interleaved multithreaded scalar —Easiest multithreading to implement —Switch threads at each clock cycle —Pipeline stages kept close to fully occupied —Hardware needs to switch thread context between cycles • Blocked multithreaded scalar —Thread executed until latency event occurs —Would stop pipeline —Processor switches to another thread
  • 30. Multiple Instruction Issue Processors • Superscalar — No multithreading • Interleaved multithreading superscalar: — Each cycle, as many instructions as possible issued from single thread — Delays due to thread switches eliminated — Number of instructions issued in cycle limited by dependencies • Blocked multithreaded superscalar — Instructions from one thread — Blocked multithreading used
  • 32. Multiple Instruction Issue Processors • Very long instruction word (VLIW) —E.g. IA-64 —Multiple instructions in single word —Typically constructed by compiler —Operations may be executed in parallel in same word —May pad with no-ops • Interleaved multithreading VLIW —Similar efficiencies to interleaved multithreading on superscalar architecture • Blocked multithreaded VLIW —Similar efficiencies to blocked multithreading on superscalar architecture
  • 34. Parallel, Simultaneous Execution of Multiple Threads • Simultaneous multithreading —Issue multiple instructions at a time —One thread may fill all horizontal slots —Instructions from two or more threads may be issued —With enough threads, can issue maximum number of instructions on each cycle • Chip multiprocessor —Multiple processors —Each has two-issue superscalar processor —Each processor is assigned thread – Can issue up to two instructions per cycle per thread
  • 36. Examples • Some Pentium 4 (single processor) —Intel calls it hyperthreading —SMT with support for two threads —Single multithreaded processor, logically two processors • IBM Power5 —High-end PowerPC —Combines chip multiprocessing with SMT —Chip has two separate processors —Each supporting two threads concurrently using SMT