SlideShare ist ein Scribd-Unternehmen logo
1 von 9
By,
S . Adlin Jeena
D. Jagadeeswari
Introduction
 collection of program abstractions.
 designed for multiprocessors, multicomputer or
vector/SIMD computers
 Five models:
 Shared-Variable Model
 Message-Passing Model
 Data-Parallel Model
 Object-oriented Model
 Functional and Logic Models
Shared-Variable Model
 To limit the scope and rights, the process address
space may be shared or restricted.
Mechanisms for IPC:
1. IPC using shared variable:
2. IPC using message passing:
Shared Variables
in a common
memory
Process A
Process B
Process C
Process D Process E
Following are some issues of Shared-variable Model:
 Shared-Variable communication:
 Critical Section(CS):
 code segment accessing shared variables.
 Requirements are –
 Mutual exclusion
 No deadlock in waiting
 Non preemption
 Eventual entry
 Protected Access: based on CS value
 Multiprogramming
 Multiprocessing – two types:
 MIMD mode
 MPMD mode
 Multitasking
 Multithreading
 Partitioning and Replication:
 Program partitioning is a technique for decomposing a large
program and data set into many small pieces for parallel
execution by multiple processors.
 Program replication is referred to duplication of the same
program code for parallel execution on multiple processor
over different data sets.
 Scheduling and Synchronization:
 Scheduling of divided program modules on parallel processor
 Two types are :
 Static scheduling
 Dynamic scheduling
 Cache Coherence and Protection:
If the value is returned on a read instruction is always the value
written by the latest write instruction on the same memory
location is called coherent.
Message-Passing Model
 Synchronous Message Passing –
 It is must synchronize the sender process and the
receiver process in time and space
 Asynchronous Message Passing –
 It does not require message sending and receiving be
synchronized in time and space
 Non blocking can be achieved
 Distributing the computations:
 Subprogram level is handled rather than at the
instructional or fine grain process level in a tightly
coupled multiprocessor
Data-Parallel Model
 It is easier to write and to debug because parallelism is
explicitly handled by hardware synchronization and
flow control.
 It requires the use of pre-distributed data sets
 Synchronization is done at compile time rather than
run time.
 the following are some issued handled
 Data Parallelism-
 Array Language Extensions
 Compiler support
Object-Oriented Model
 Concurrent OOP – 3 application demands
 There is increased use of interacting processes by individual
users
 Workstation networks have become a cost-effective
mechanism
 Multiprocessor technology in several variants has advanced to
the point of providing supercomputing power
 An actor model
 It is presented as one framework for COOP
 They are self-contained , interactive, independent
components of a computing system.
 Basic primitives are :create to , send to, become
 Parallelism in COOP:
 3 patterns- 1. pipeline concurrency 2.divide and conquer
currency 3.cooperative problem solving
Functional and Logic Models
 Two types of language oriented programming models
are
 Functional programming model
 It emphasizes functionality of a program
 No concepts of storage, assignment and branching
 All single-assignment and dataflow languages are functional
in nature
 Some e.g. are Lisp, SISAL and strand 88
 Logic programming model
 Based on logic ,logic programming tat suitable for dealing
with large database.
 Some e.g. are
 concurrent Prolog -
 Concurrent Parlog

Weitere ähnliche Inhalte

Was ist angesagt?

distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
Ashish Kumar
 
Access to non local names
Access to non local namesAccess to non local names
Access to non local names
Varsha Kumar
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
shivli0769
 

Was ist angesagt? (20)

Parallel programming model
Parallel programming modelParallel programming model
Parallel programming model
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
system interconnect architectures in ACA
system interconnect architectures in ACAsystem interconnect architectures in ACA
system interconnect architectures in ACA
 
Mainframe systems
Mainframe systemsMainframe systems
Mainframe systems
 
Dichotomy of parallel computing platforms
Dichotomy of parallel computing platformsDichotomy of parallel computing platforms
Dichotomy of parallel computing platforms
 
Parallel programming model
Parallel programming modelParallel programming model
Parallel programming model
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing models
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
6.distributed shared memory
6.distributed shared memory6.distributed shared memory
6.distributed shared memory
 
Synchronization Pradeep K Sinha
Synchronization Pradeep K SinhaSynchronization Pradeep K Sinha
Synchronization Pradeep K Sinha
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
 
Access to non local names
Access to non local namesAccess to non local names
Access to non local names
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 
Unit5
Unit5Unit5
Unit5
 
Chapter 6 synchronization
Chapter 6 synchronizationChapter 6 synchronization
Chapter 6 synchronization
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dos
 
Parallel and distributed Computing
Parallel and distributed Computing Parallel and distributed Computing
Parallel and distributed Computing
 
File replication
File replicationFile replication
File replication
 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts
 

Andere mochten auch (10)

Cache coherence problem and its solutions
Cache coherence problem and its solutionsCache coherence problem and its solutions
Cache coherence problem and its solutions
 
Multithreaded processors ppt
Multithreaded processors pptMultithreaded processors ppt
Multithreaded processors ppt
 
Cache coherence
Cache coherenceCache coherence
Cache coherence
 
Multithreading
MultithreadingMultithreading
Multithreading
 
Cray-1 The First Supercomputer
Cray-1 The First SupercomputerCray-1 The First Supercomputer
Cray-1 The First Supercomputer
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
 
Introduction to parallel processing
Introduction to parallel processingIntroduction to parallel processing
Introduction to parallel processing
 
Multithreading In Java
Multithreading In JavaMultithreading In Java
Multithreading In Java
 
1.prallelism
1.prallelism1.prallelism
1.prallelism
 
Array Processor
Array ProcessorArray Processor
Array Processor
 

Ähnlich wie Parallel Programing Model

The Parallel Architecture Approach, Single Program Multiple Data (Spmd) Imple...
The Parallel Architecture Approach, Single Program Multiple Data (Spmd) Imple...The Parallel Architecture Approach, Single Program Multiple Data (Spmd) Imple...
The Parallel Architecture Approach, Single Program Multiple Data (Spmd) Imple...
ijceronline
 
Computing notes
Computing notesComputing notes
Computing notes
thenraju24
 
Lec+3-Introduction-to-Distributed-Systems.pdf
Lec+3-Introduction-to-Distributed-Systems.pdfLec+3-Introduction-to-Distributed-Systems.pdf
Lec+3-Introduction-to-Distributed-Systems.pdf
samaghorab
 

Ähnlich wie Parallel Programing Model (20)

Advanced computer architecture unit 5
Advanced computer architecture  unit 5Advanced computer architecture  unit 5
Advanced computer architecture unit 5
 
Basic concepts of parallelization
Basic concepts of parallelizationBasic concepts of parallelization
Basic concepts of parallelization
 
parallel programming models
 parallel programming models parallel programming models
parallel programming models
 
The Parallel Architecture Approach, Single Program Multiple Data (Spmd) Imple...
The Parallel Architecture Approach, Single Program Multiple Data (Spmd) Imple...The Parallel Architecture Approach, Single Program Multiple Data (Spmd) Imple...
The Parallel Architecture Approach, Single Program Multiple Data (Spmd) Imple...
 
Aq4301224227
Aq4301224227Aq4301224227
Aq4301224227
 
01-MessagePassingFundamentals.ppt
01-MessagePassingFundamentals.ppt01-MessagePassingFundamentals.ppt
01-MessagePassingFundamentals.ppt
 
Concurrent Matrix Multiplication on Multi-core Processors
Concurrent Matrix Multiplication on Multi-core ProcessorsConcurrent Matrix Multiplication on Multi-core Processors
Concurrent Matrix Multiplication on Multi-core Processors
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Computing notes
Computing notesComputing notes
Computing notes
 
Designing Application over mobile environment
Designing Application over mobile environmentDesigning Application over mobile environment
Designing Application over mobile environment
 
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.pptcharacteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
 
Application-oriented ping-pong benchmarking: how to assess the real communica...
Application-oriented ping-pong benchmarking: how to assess the real communica...Application-oriented ping-pong benchmarking: how to assess the real communica...
Application-oriented ping-pong benchmarking: how to assess the real communica...
 
Parallel Processing Concepts
Parallel Processing Concepts Parallel Processing Concepts
Parallel Processing Concepts
 
Distributed Shared Memory – A Survey and Implementation Using Openshmem
Distributed Shared Memory – A Survey and Implementation Using OpenshmemDistributed Shared Memory – A Survey and Implementation Using Openshmem
Distributed Shared Memory – A Survey and Implementation Using Openshmem
 
Distributed Shared Memory – A Survey and Implementation Using Openshmem
Distributed Shared Memory – A Survey and Implementation Using OpenshmemDistributed Shared Memory – A Survey and Implementation Using Openshmem
Distributed Shared Memory – A Survey and Implementation Using Openshmem
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
 
Lec+3-Introduction-to-Distributed-Systems.pdf
Lec+3-Introduction-to-Distributed-Systems.pdfLec+3-Introduction-to-Distributed-Systems.pdf
Lec+3-Introduction-to-Distributed-Systems.pdf
 
Parallelization using open mp
Parallelization using open mpParallelization using open mp
Parallelization using open mp
 
Hardback solution to accelerate multimedia computation through mgp in cmp
Hardback solution to accelerate multimedia computation through mgp in cmpHardback solution to accelerate multimedia computation through mgp in cmp
Hardback solution to accelerate multimedia computation through mgp in cmp
 
Chapter16 new
Chapter16 newChapter16 new
Chapter16 new
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 

Parallel Programing Model

  • 1. By, S . Adlin Jeena D. Jagadeeswari
  • 2. Introduction  collection of program abstractions.  designed for multiprocessors, multicomputer or vector/SIMD computers  Five models:  Shared-Variable Model  Message-Passing Model  Data-Parallel Model  Object-oriented Model  Functional and Logic Models
  • 3. Shared-Variable Model  To limit the scope and rights, the process address space may be shared or restricted. Mechanisms for IPC: 1. IPC using shared variable: 2. IPC using message passing: Shared Variables in a common memory Process A Process B Process C Process D Process E
  • 4. Following are some issues of Shared-variable Model:  Shared-Variable communication:  Critical Section(CS):  code segment accessing shared variables.  Requirements are –  Mutual exclusion  No deadlock in waiting  Non preemption  Eventual entry  Protected Access: based on CS value  Multiprogramming  Multiprocessing – two types:  MIMD mode  MPMD mode  Multitasking  Multithreading
  • 5.  Partitioning and Replication:  Program partitioning is a technique for decomposing a large program and data set into many small pieces for parallel execution by multiple processors.  Program replication is referred to duplication of the same program code for parallel execution on multiple processor over different data sets.  Scheduling and Synchronization:  Scheduling of divided program modules on parallel processor  Two types are :  Static scheduling  Dynamic scheduling  Cache Coherence and Protection: If the value is returned on a read instruction is always the value written by the latest write instruction on the same memory location is called coherent.
  • 6. Message-Passing Model  Synchronous Message Passing –  It is must synchronize the sender process and the receiver process in time and space  Asynchronous Message Passing –  It does not require message sending and receiving be synchronized in time and space  Non blocking can be achieved  Distributing the computations:  Subprogram level is handled rather than at the instructional or fine grain process level in a tightly coupled multiprocessor
  • 7. Data-Parallel Model  It is easier to write and to debug because parallelism is explicitly handled by hardware synchronization and flow control.  It requires the use of pre-distributed data sets  Synchronization is done at compile time rather than run time.  the following are some issued handled  Data Parallelism-  Array Language Extensions  Compiler support
  • 8. Object-Oriented Model  Concurrent OOP – 3 application demands  There is increased use of interacting processes by individual users  Workstation networks have become a cost-effective mechanism  Multiprocessor technology in several variants has advanced to the point of providing supercomputing power  An actor model  It is presented as one framework for COOP  They are self-contained , interactive, independent components of a computing system.  Basic primitives are :create to , send to, become  Parallelism in COOP:  3 patterns- 1. pipeline concurrency 2.divide and conquer currency 3.cooperative problem solving
  • 9. Functional and Logic Models  Two types of language oriented programming models are  Functional programming model  It emphasizes functionality of a program  No concepts of storage, assignment and branching  All single-assignment and dataflow languages are functional in nature  Some e.g. are Lisp, SISAL and strand 88  Logic programming model  Based on logic ,logic programming tat suitable for dealing with large database.  Some e.g. are  concurrent Prolog -  Concurrent Parlog