SlideShare une entreprise Scribd logo
1  sur  8
PARALLEL ARCHITECTURE AND COMPUTING
1.What is Parallel Computing?
Parallel computing is a form of computation in which many calculations are carried out
simultaneously, operating on the principle that large problems can on often be divided into smaller ones,
which are then solved concurrently ("in parallel").
2.Why Use Parallel Computing?
 There are two primary reasons for using parallel computing:
o Save time - wall clock time
o Solve larger problems
3.Comparison between Temporal and Data Parallelism
Temporal Parallelism
1. Job is divided into a set of independent tasks and tasks are assigned for processing.
2.Tasks should take equal time.Pipeline stages should thus be synchronized.
3.Bubbles in jobs lead to idling of processors. 4. Processors specialized to
do specific tasks efficiently.
5. Task assigned may be statics .
6. Not tolerant to faults.
7. Efficient with fine grained tasks.
8. Scales well as long as no. of jobs to be processed is much larger than the no. of
processors in the pipeline and communication time is minimal.
Data Parallelism
1. Full jobs are assigned for processing.
2. Jobs may take different times. No need to synchronize beginning of jobs.
3.Bubbles do not cause idling of processors.
4. Processors should be general purpose and may not do every job efficiently.
5.Job assignment may be static, dynamic or quasi-dynamic.
6.Tolerates faults.
7.Efficient with coarse grained tasks and quasi-dynamic scheduling.
8. Scales well as long as no. of jobs are much greater than the no. of processors and processing time is
much higher than the communication time.
4.Explain the types of Data Processing with Specialized Processors
1. Fine grain Data Parallelism – Specialist Data Parallelism
2. Coarse grain Data Parallelism – Coarse grain Specialist Temporal Parallelism
5.Explain Disadvantage of Specialist Data Parallelism
1.Load is not balanced in this method. If one question takes more time to be graded
then the others will be idle for that time.
2. The same problem occurs if one question is not answered by many students.
3. The head examiner wastes a lot of time checking the script for unanswered questions and the teachers
are sitting idle at that time.
6.Explain Coarse grain specialist Temporal Parallelism Advantages
1.Processing of special tasks are done by specialized processors.
2. The method uses the concept of pipelined processing in a circular pipeline.
3. There is buffering (in-tray & out-tray)between pipeline stages.
4. Each stage has a chunk of work to do.
5. Does not need strict synchronization.
6. Tolerates bubbles.
1. What is parallel processing?
Parallel processing is the processing of program instructions by dividing them among
multiple processors with the objective of running a program in less time.
(Or)
The simultaneous use of more than one CPU to execute a program. Ideally, parallel
processing makes a program run faster because there are more engines (CPUs) running it.
2. What is concurrency?
Concurrency is a term used in the operating systems and databases communities which
refers to the property of a system in which multiple tasks remain logically active and make
progress at the same time by interleaving the execution order of the tasks and thereby creating an
illusion of simultaneously executing instructions. Parallelism exploits concurrency
3. What is multiprogramming?
Multiprogramming is the allocation of a computer system and its resources to more than
one concurrent application, job or user ("program" in this nomenclature). The use of
multiprogramming was enhanced by the arrival of virtual memory and virtual machine
technology.
In a multiprogramming system, multiple programs submitted by users were each allowed
to use the processor for a short time. To users it appeared that all of the programs were executing
at the same time.
4. What is Parallel computing?
Parallel computing is a form of computation in which many calculations are carried out
simultaneously, operating on the principle that large problems can often be divided into smaller
ones, which are then solved concurrently ("in parallel").
There are several different forms of parallel computing: bit-level, instruction level, data,
and task parallelism. Parallelism has been employed for many years, mainly in high-performance
computing.
5. What is vector processor?
A vector processor, or array processor, is a central processing unit (CPU) that
implements an instruction set containing instructions that operate on one-dimensional arrays of
data called vectors. This is in contrast to a scalar processor, whose instructions operate on single
data items.
A vector computer or vector processor is a machine designed to efficiently handle
arithmetic operations on elements of arrays, called vectors. Such machines are especially useful
in high-performance scientific computing, where matrix and vector arithmetic are quite common.
6. What is Parallel computer?
A parallel computer is defined as an interconnected set of processing Elements (PEs)
which cooperate by communicating with one another to solve large problems fast
7. What are the different types of Processing Elements(PEs)?
 Arithmetic Logic unit(ALU) only
 A microprocessor with only a private cache memory or a full fledged microprocessor
with is own cache and main memory( a PE with is own cache and main memory is called
Computing Elements (CEs)
 A powerful large computer such as a mainframe or vector processor
8. What are the different types of mode of cooperation?
 Each CE has a set of processes assigned to it. Each CE works independently and CEs
cooperate by exchanging intermediate results
 All processes and data to be processed are stored in the memory shared by all PEs. A
free PE selects a process to execute and deposits the results in the memory for use by
other PEs.
 A host CE stores a pool of tasks to be executed and schedules to free CEs dynamically
9. What are the criteria to classify the parallel computers?
1. How do instructions and data flow in the system? This idea for classification was
proposed by Flynn and is known as Flynn’s classification.
2. What is the coupling between CEs?
3. How do PEs access memory?
4. What is the quantum of work done by PE before it communicate with other
PEs?
10. What is Loosely coupling?
Loose coupling is a method of interconnecting the components in a system or network so
that those components, also called elements, depend on each other to the least extent practicable.
Loose coupling simplifies testing, maintenance and troubleshooting procedures because
problems are easy to isolate and unlikely to spread or propagate.
11. What is tightly coupling?
Tight coupling (or tightly coupled) is a type of coupling that describes a system in which
hardware and software are not only linked together, but are also dependant upon each other. In a
tightly coupled system where multiple systems share a workload, the entire system usually would
need to be powered down to fix a major hardware problem, not just the single system with the
issue.
Tight coupling is used to define software that will work only in one part of a specific type
of system and the software is dependant on other software. For example, an operating system
would be considered tightly coupled as it depends on software drivers to correctly install and
activate the system's peripheral devices.
12.How parallel computers are classified based on mode of accessing?
Parallel computer
Coupling Loosely coupled tightly coupled
Physical processing elements network processing elements share
Connection with private memory a common memory and
communicate via a network communicate via shared
memory
Logical cooperation compute independently and cooperate by sharing results
cooperate by exchanging stored in a common memory
messages
Types of parallel Message passing Multicomputer Shared Memory Multicomputer
Computer (or) Distributd Shared Memory or Symmetric Multiprocessor
computer
13. What is Uniform Memory Access (UMA)?
In Shared Memory (SM) computer or Symmetric Multiprocessor, the time to access a
word in memory is constant for all processors. Such a parallel computer(SM) is said to have a
Uniform Memory Access(UMA)
14. What is Non Uniform Memory Access (UMA)?
In distributed shared memory computer, The time to access a word in memory local t it
is smaller than the time taken to access a word stored in the memory of another computer or a
common shared memory. Such a parallel computer(DSm) is said to have a Non Uniform
Memory Access(NUMA)
15. What id cache coherence problem?
In multiprocessor, there are many caches, one per processor. It is essential to keep the
data in given address same in all caches to avoid errors in computation
The cache coherence problem arises when a PE writes a data into its private cache in
address x but which is not known to the caches of other PEs
16. What is write-through or write-now protocol?
If the processor initiate a write request, if the data is in the cache, it overwrites the
existing data in the cache. If the protocol is write-now protocol, the data is the main memory is
also updated.
17 . What write-back protocol?
If the processor initiate a write request, if the data is in the cache, it overwrites the
existing data in the cache. If the protocol is write-back protocol, the data is the main memory is
also updated only when the cache block in which the data is contained is to be replaces by
another block from the main memory.
18. List any two cache coherence protocol?
 SNOOPY cache protocol
 MESI protocol
19. What is snoopy cache protocol?
In multiprocessor, there are many caches, one per processor, and one has to know the
status of each of them. A bus based system has the advantage that a transaction involving a cache
is broadcast on the bus and other caches can listen to the broadcast. Thus cache coherence
protocols are based on cache controllers of each processors listening (called snoopy which means
secretly listening) to the broadcast on the bus and taking appropriate action. These protocols are
known as snoopy cache protocol
20. What is MESI ?
The Pentium cache coherence protocol is known as MESI protocol. This protocol
invalidates the shared blocks in caches when new information is written in that block by any PE.
When new information is written in any cache block it is not written immediately in the main
memory
21. What are the different status of cache block in MESI protocol?
Modified(M) The data in cache block has been modified and it is the only copy. Main
memory copy is an old copy
Exclusive(E) The data in cache block is valid and is the same as in main memory. No
other cache has these valid copies
Shared(S) The data in cache block is valid and is the same as in main memory. No
other caches also have valid copies.
Invalid(I) The data in cache block has been invalidated as another cache block has a
newly written value
22. What is the difference between single processor system and multi processor system?
Single-processor system has only one actual processor, while Multiprocessor system has
more than one, both types of systems can have more than one core per processor.
Multiple processors per system have long been used in systems that need a lot of processing
power, like high traffic servers and when lots of computational power is needed.
However these systems have been expensive and not needed by normal home or office
users. In recent years it's become typical that one processor has 2, 3, 4 or even 8 cores. These
multicore processors behave the same way as if you had multiple processors.
One core can only do one task at a time. Multitasking is done by sharing the time of the
processor between processes (program), one process runs for a short time, then another, then
another or maybe the first one again. The switching is done so fast that the user wont know the
difference. Multiple cores can run multiple processes at once for real.
It depends on your software how well you computer can use the advantage of having multiple
processors/cores, dividing the task to different processes.
23. What is Read Miss and Write Miss?
When the required data is not found in the cache during read and request , this situation is called
Read Miss and Write Miss
24. What is the mechanism used to ensure the cache coherence in Shared Memory parallel
computer using an interconnection Network?
The Directory scheme is used to ensure cache coherence in these systems. The main
purpose of the directory is to know which blocks are in caches and their status. Suppose a
multiprocessor has M blocks in main memory and there are N processors and each processor has
a cache. Each memory has an N bit directory entry. If the kth processor’s cache has this block, the
kth bit is the directory is set to one
25. What are the different status of main memory in Directory schemed cache coherence?
State status bits Explanation
Lock bit Modified bit
Absent (A) 0 0 All processor’s cache bit in
directory 0(No cache holds a copy
Present (P) 1 0 one or more processor cache bit is 1
Present Exclusive (PM 0 1 Exactly one cache bit is 1
Lock(L) 1 _ An operation is going on involving
The block and it is locked
26. What are the advantage of Parallel processing?
o Increased throughput (more work done in less time)
o Economical
o Increased reliability
 graceful degradation (fault tolerant)
27. List out the types of Multiprocessor Architecture?
• Message-Passing Architectures
– Separate address space for each processor.
– Processors communicate via message passing.
• Shared-Memory Architectures
– Single address space shared by all processors.
– Processors communicate by memory read/write.
– SMP or NUMA.
– Cache coherence is important issue.
28. What is Symmetric, Asymmetric multiprocessing?
 Asymmetric multiprocessing
• Each processor is assigned a specific task; master
• processor schedules and allocated work to slave processors
• More common in extremely large systems
 Symmetric multiprocessing (SMP)
• Each processor runs and identical copy of the operating System
• Many processes can run at once without performance deterioration
• Most modern operating systems support SMP

Contenu connexe

Tendances

Parallel Programming
Parallel ProgrammingParallel Programming
Parallel ProgrammingUday Sharma
 
Multiprocessor Scheduling
Multiprocessor SchedulingMultiprocessor Scheduling
Multiprocessor SchedulingKhadija Saleem
 
Introduction to Parallel Computing
Introduction to Parallel ComputingIntroduction to Parallel Computing
Introduction to Parallel ComputingAkhila Prabhakaran
 
Applications of paralleL processing
Applications of paralleL processingApplications of paralleL processing
Applications of paralleL processingPage Maker
 
Multi processor scheduling
Multi  processor schedulingMulti  processor scheduling
Multi processor schedulingShashank Kapoor
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Ismail Mukiibi
 
Full introduction to_parallel_computing
Full introduction to_parallel_computingFull introduction to_parallel_computing
Full introduction to_parallel_computingSupasit Kajkamhaeng
 
Parallel architecture-programming
Parallel architecture-programmingParallel architecture-programming
Parallel architecture-programmingShaveta Banda
 
Parallel computing
Parallel computingParallel computing
Parallel computingVinay Gupta
 
INTRODUCTION TO PARALLEL PROCESSING
INTRODUCTION TO PARALLEL PROCESSINGINTRODUCTION TO PARALLEL PROCESSING
INTRODUCTION TO PARALLEL PROCESSINGGS Kosta
 
message passing vs shared memory
message passing vs shared memorymessage passing vs shared memory
message passing vs shared memoryHamza Zahid
 
Parallel Processing
Parallel ProcessingParallel Processing
Parallel ProcessingRTigger
 
Introduction to parallel_computing
Introduction to parallel_computingIntroduction to parallel_computing
Introduction to parallel_computingMehul Patel
 

Tendances (20)

Parallel Computing
Parallel ComputingParallel Computing
Parallel Computing
 
Parallel Programming
Parallel ProgrammingParallel Programming
Parallel Programming
 
Multiprocessor Scheduling
Multiprocessor SchedulingMultiprocessor Scheduling
Multiprocessor Scheduling
 
Introduction to Parallel Computing
Introduction to Parallel ComputingIntroduction to Parallel Computing
Introduction to Parallel Computing
 
Applications of paralleL processing
Applications of paralleL processingApplications of paralleL processing
Applications of paralleL processing
 
Wiki 2
Wiki 2Wiki 2
Wiki 2
 
Unit v
Unit vUnit v
Unit v
 
Multi processor scheduling
Multi  processor schedulingMulti  processor scheduling
Multi processor scheduling
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
 
Full introduction to_parallel_computing
Full introduction to_parallel_computingFull introduction to_parallel_computing
Full introduction to_parallel_computing
 
Chap7
Chap7Chap7
Chap7
 
Parallel architecture-programming
Parallel architecture-programmingParallel architecture-programming
Parallel architecture-programming
 
Ch4
Ch4Ch4
Ch4
 
Parallel computing
Parallel computingParallel computing
Parallel computing
 
INTRODUCTION TO PARALLEL PROCESSING
INTRODUCTION TO PARALLEL PROCESSINGINTRODUCTION TO PARALLEL PROCESSING
INTRODUCTION TO PARALLEL PROCESSING
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Parallel computing persentation
Parallel computing persentationParallel computing persentation
Parallel computing persentation
 
message passing vs shared memory
message passing vs shared memorymessage passing vs shared memory
message passing vs shared memory
 
Parallel Processing
Parallel ProcessingParallel Processing
Parallel Processing
 
Introduction to parallel_computing
Introduction to parallel_computingIntroduction to parallel_computing
Introduction to parallel_computing
 

Similaire à PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES

Similaire à PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES (20)

Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Operating Systems R20 Unit 2.pptx
Operating Systems R20 Unit 2.pptxOperating Systems R20 Unit 2.pptx
Operating Systems R20 Unit 2.pptx
 
Parallel Processing.pptx
Parallel Processing.pptxParallel Processing.pptx
Parallel Processing.pptx
 
parallel computing.ppt
parallel computing.pptparallel computing.ppt
parallel computing.ppt
 
Types of Operating System-converted.pdf
Types of Operating System-converted.pdfTypes of Operating System-converted.pdf
Types of Operating System-converted.pdf
 
cloud computing.pptx
cloud computing.pptxcloud computing.pptx
cloud computing.pptx
 
Cloud Computing.pptx
Cloud Computing.pptxCloud Computing.pptx
Cloud Computing.pptx
 
Os
OsOs
Os
 
Types or evolution of operating system
Types or evolution of operating systemTypes or evolution of operating system
Types or evolution of operating system
 
Coa presentation5
Coa presentation5Coa presentation5
Coa presentation5
 
Compiler design
Compiler designCompiler design
Compiler design
 
Module 2.pdf
Module 2.pdfModule 2.pdf
Module 2.pdf
 
Unit 4 Real Time Operating System
Unit 4 Real Time Operating SystemUnit 4 Real Time Operating System
Unit 4 Real Time Operating System
 
Parallel Processing Presentation2
Parallel Processing Presentation2Parallel Processing Presentation2
Parallel Processing Presentation2
 
Lecture1
Lecture1Lecture1
Lecture1
 
Operating system
Operating systemOperating system
Operating system
 
Session1 intro to_os
Session1 intro to_osSession1 intro to_os
Session1 intro to_os
 
cloud computing.pptx
cloud computing.pptxcloud computing.pptx
cloud computing.pptx
 
Fundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxFundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptx
 
Assignment-01.pptx
Assignment-01.pptxAssignment-01.pptx
Assignment-01.pptx
 

Plus de suthi

Object Oriented Programming -- Dr Robert Harle
Object Oriented Programming -- Dr Robert HarleObject Oriented Programming -- Dr Robert Harle
Object Oriented Programming -- Dr Robert Harlesuthi
 
THE ROLE OF EDGE COMPUTING IN INTERNET OF THINGS
THE ROLE OF EDGE COMPUTING IN INTERNET OF THINGSTHE ROLE OF EDGE COMPUTING IN INTERNET OF THINGS
THE ROLE OF EDGE COMPUTING IN INTERNET OF THINGSsuthi
 
EDGE COMPUTING: VISION AND CHALLENGES
EDGE COMPUTING: VISION AND CHALLENGESEDGE COMPUTING: VISION AND CHALLENGES
EDGE COMPUTING: VISION AND CHALLENGESsuthi
 
Document Classification Using KNN with Fuzzy Bags of Word Representation
Document Classification Using KNN with Fuzzy Bags of Word RepresentationDocument Classification Using KNN with Fuzzy Bags of Word Representation
Document Classification Using KNN with Fuzzy Bags of Word Representationsuthi
 
AUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESAUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESsuthi
 
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTESOBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTESsuthi
 
SOFTWARE QUALITY ASSURANCE AND TESTING - SHORT NOTES
SOFTWARE QUALITY ASSURANCE AND TESTING - SHORT NOTESSOFTWARE QUALITY ASSURANCE AND TESTING - SHORT NOTES
SOFTWARE QUALITY ASSURANCE AND TESTING - SHORT NOTESsuthi
 
COMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTESCOMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTESsuthi
 
DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
DATA BASE MANAGEMENT SYSTEM - SHORT NOTESDATA BASE MANAGEMENT SYSTEM - SHORT NOTES
DATA BASE MANAGEMENT SYSTEM - SHORT NOTESsuthi
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESsuthi
 
SOFTWARE ENGINEERING & ARCHITECTURE - SHORT NOTES
SOFTWARE ENGINEERING & ARCHITECTURE - SHORT NOTESSOFTWARE ENGINEERING & ARCHITECTURE - SHORT NOTES
SOFTWARE ENGINEERING & ARCHITECTURE - SHORT NOTESsuthi
 
ALGORITHMS - SHORT NOTES
ALGORITHMS - SHORT NOTESALGORITHMS - SHORT NOTES
ALGORITHMS - SHORT NOTESsuthi
 
COMPUTER NETWORKS - SHORT NOTES
COMPUTER NETWORKS - SHORT NOTESCOMPUTER NETWORKS - SHORT NOTES
COMPUTER NETWORKS - SHORT NOTESsuthi
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESsuthi
 
ARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTESARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTESsuthi
 
LIGHT PEAK
LIGHT PEAKLIGHT PEAK
LIGHT PEAKsuthi
 
Action Recognition using Nonnegative Action
Action Recognition using Nonnegative ActionAction Recognition using Nonnegative Action
Action Recognition using Nonnegative Actionsuthi
 
C Programming Tutorial
C Programming TutorialC Programming Tutorial
C Programming Tutorialsuthi
 
Data structure - mcqs
Data structure - mcqsData structure - mcqs
Data structure - mcqssuthi
 
Data base management systems ppt
Data base management systems pptData base management systems ppt
Data base management systems pptsuthi
 

Plus de suthi (20)

Object Oriented Programming -- Dr Robert Harle
Object Oriented Programming -- Dr Robert HarleObject Oriented Programming -- Dr Robert Harle
Object Oriented Programming -- Dr Robert Harle
 
THE ROLE OF EDGE COMPUTING IN INTERNET OF THINGS
THE ROLE OF EDGE COMPUTING IN INTERNET OF THINGSTHE ROLE OF EDGE COMPUTING IN INTERNET OF THINGS
THE ROLE OF EDGE COMPUTING IN INTERNET OF THINGS
 
EDGE COMPUTING: VISION AND CHALLENGES
EDGE COMPUTING: VISION AND CHALLENGESEDGE COMPUTING: VISION AND CHALLENGES
EDGE COMPUTING: VISION AND CHALLENGES
 
Document Classification Using KNN with Fuzzy Bags of Word Representation
Document Classification Using KNN with Fuzzy Bags of Word RepresentationDocument Classification Using KNN with Fuzzy Bags of Word Representation
Document Classification Using KNN with Fuzzy Bags of Word Representation
 
AUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESAUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTES
 
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTESOBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
 
SOFTWARE QUALITY ASSURANCE AND TESTING - SHORT NOTES
SOFTWARE QUALITY ASSURANCE AND TESTING - SHORT NOTESSOFTWARE QUALITY ASSURANCE AND TESTING - SHORT NOTES
SOFTWARE QUALITY ASSURANCE AND TESTING - SHORT NOTES
 
COMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTESCOMPUTER HARDWARE - SHORT NOTES
COMPUTER HARDWARE - SHORT NOTES
 
DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
DATA BASE MANAGEMENT SYSTEM - SHORT NOTESDATA BASE MANAGEMENT SYSTEM - SHORT NOTES
DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTES
 
SOFTWARE ENGINEERING & ARCHITECTURE - SHORT NOTES
SOFTWARE ENGINEERING & ARCHITECTURE - SHORT NOTESSOFTWARE ENGINEERING & ARCHITECTURE - SHORT NOTES
SOFTWARE ENGINEERING & ARCHITECTURE - SHORT NOTES
 
ALGORITHMS - SHORT NOTES
ALGORITHMS - SHORT NOTESALGORITHMS - SHORT NOTES
ALGORITHMS - SHORT NOTES
 
COMPUTER NETWORKS - SHORT NOTES
COMPUTER NETWORKS - SHORT NOTESCOMPUTER NETWORKS - SHORT NOTES
COMPUTER NETWORKS - SHORT NOTES
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTES
 
ARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTESARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTES
 
LIGHT PEAK
LIGHT PEAKLIGHT PEAK
LIGHT PEAK
 
Action Recognition using Nonnegative Action
Action Recognition using Nonnegative ActionAction Recognition using Nonnegative Action
Action Recognition using Nonnegative Action
 
C Programming Tutorial
C Programming TutorialC Programming Tutorial
C Programming Tutorial
 
Data structure - mcqs
Data structure - mcqsData structure - mcqs
Data structure - mcqs
 
Data base management systems ppt
Data base management systems pptData base management systems ppt
Data base management systems ppt
 

Dernier

How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 

Dernier (20)

How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 

PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES

  • 1. PARALLEL ARCHITECTURE AND COMPUTING 1.What is Parallel Computing? Parallel computing is a form of computation in which many calculations are carried out simultaneously, operating on the principle that large problems can on often be divided into smaller ones, which are then solved concurrently ("in parallel"). 2.Why Use Parallel Computing?  There are two primary reasons for using parallel computing: o Save time - wall clock time o Solve larger problems 3.Comparison between Temporal and Data Parallelism Temporal Parallelism 1. Job is divided into a set of independent tasks and tasks are assigned for processing. 2.Tasks should take equal time.Pipeline stages should thus be synchronized. 3.Bubbles in jobs lead to idling of processors. 4. Processors specialized to do specific tasks efficiently. 5. Task assigned may be statics . 6. Not tolerant to faults. 7. Efficient with fine grained tasks. 8. Scales well as long as no. of jobs to be processed is much larger than the no. of processors in the pipeline and communication time is minimal. Data Parallelism 1. Full jobs are assigned for processing. 2. Jobs may take different times. No need to synchronize beginning of jobs. 3.Bubbles do not cause idling of processors. 4. Processors should be general purpose and may not do every job efficiently. 5.Job assignment may be static, dynamic or quasi-dynamic. 6.Tolerates faults.
  • 2. 7.Efficient with coarse grained tasks and quasi-dynamic scheduling. 8. Scales well as long as no. of jobs are much greater than the no. of processors and processing time is much higher than the communication time. 4.Explain the types of Data Processing with Specialized Processors 1. Fine grain Data Parallelism – Specialist Data Parallelism 2. Coarse grain Data Parallelism – Coarse grain Specialist Temporal Parallelism 5.Explain Disadvantage of Specialist Data Parallelism 1.Load is not balanced in this method. If one question takes more time to be graded then the others will be idle for that time. 2. The same problem occurs if one question is not answered by many students. 3. The head examiner wastes a lot of time checking the script for unanswered questions and the teachers are sitting idle at that time. 6.Explain Coarse grain specialist Temporal Parallelism Advantages 1.Processing of special tasks are done by specialized processors. 2. The method uses the concept of pipelined processing in a circular pipeline. 3. There is buffering (in-tray & out-tray)between pipeline stages. 4. Each stage has a chunk of work to do. 5. Does not need strict synchronization. 6. Tolerates bubbles. 1. What is parallel processing? Parallel processing is the processing of program instructions by dividing them among multiple processors with the objective of running a program in less time. (Or) The simultaneous use of more than one CPU to execute a program. Ideally, parallel processing makes a program run faster because there are more engines (CPUs) running it. 2. What is concurrency? Concurrency is a term used in the operating systems and databases communities which refers to the property of a system in which multiple tasks remain logically active and make
  • 3. progress at the same time by interleaving the execution order of the tasks and thereby creating an illusion of simultaneously executing instructions. Parallelism exploits concurrency 3. What is multiprogramming? Multiprogramming is the allocation of a computer system and its resources to more than one concurrent application, job or user ("program" in this nomenclature). The use of multiprogramming was enhanced by the arrival of virtual memory and virtual machine technology. In a multiprogramming system, multiple programs submitted by users were each allowed to use the processor for a short time. To users it appeared that all of the programs were executing at the same time. 4. What is Parallel computing? Parallel computing is a form of computation in which many calculations are carried out simultaneously, operating on the principle that large problems can often be divided into smaller ones, which are then solved concurrently ("in parallel"). There are several different forms of parallel computing: bit-level, instruction level, data, and task parallelism. Parallelism has been employed for many years, mainly in high-performance computing. 5. What is vector processor? A vector processor, or array processor, is a central processing unit (CPU) that implements an instruction set containing instructions that operate on one-dimensional arrays of data called vectors. This is in contrast to a scalar processor, whose instructions operate on single data items. A vector computer or vector processor is a machine designed to efficiently handle arithmetic operations on elements of arrays, called vectors. Such machines are especially useful in high-performance scientific computing, where matrix and vector arithmetic are quite common. 6. What is Parallel computer? A parallel computer is defined as an interconnected set of processing Elements (PEs) which cooperate by communicating with one another to solve large problems fast 7. What are the different types of Processing Elements(PEs)?  Arithmetic Logic unit(ALU) only  A microprocessor with only a private cache memory or a full fledged microprocessor with is own cache and main memory( a PE with is own cache and main memory is called Computing Elements (CEs)
  • 4.  A powerful large computer such as a mainframe or vector processor 8. What are the different types of mode of cooperation?  Each CE has a set of processes assigned to it. Each CE works independently and CEs cooperate by exchanging intermediate results  All processes and data to be processed are stored in the memory shared by all PEs. A free PE selects a process to execute and deposits the results in the memory for use by other PEs.  A host CE stores a pool of tasks to be executed and schedules to free CEs dynamically 9. What are the criteria to classify the parallel computers? 1. How do instructions and data flow in the system? This idea for classification was proposed by Flynn and is known as Flynn’s classification. 2. What is the coupling between CEs? 3. How do PEs access memory? 4. What is the quantum of work done by PE before it communicate with other PEs? 10. What is Loosely coupling? Loose coupling is a method of interconnecting the components in a system or network so that those components, also called elements, depend on each other to the least extent practicable. Loose coupling simplifies testing, maintenance and troubleshooting procedures because problems are easy to isolate and unlikely to spread or propagate. 11. What is tightly coupling? Tight coupling (or tightly coupled) is a type of coupling that describes a system in which hardware and software are not only linked together, but are also dependant upon each other. In a tightly coupled system where multiple systems share a workload, the entire system usually would need to be powered down to fix a major hardware problem, not just the single system with the issue. Tight coupling is used to define software that will work only in one part of a specific type of system and the software is dependant on other software. For example, an operating system would be considered tightly coupled as it depends on software drivers to correctly install and activate the system's peripheral devices. 12.How parallel computers are classified based on mode of accessing?
  • 5. Parallel computer Coupling Loosely coupled tightly coupled Physical processing elements network processing elements share Connection with private memory a common memory and communicate via a network communicate via shared memory Logical cooperation compute independently and cooperate by sharing results cooperate by exchanging stored in a common memory messages Types of parallel Message passing Multicomputer Shared Memory Multicomputer Computer (or) Distributd Shared Memory or Symmetric Multiprocessor computer 13. What is Uniform Memory Access (UMA)? In Shared Memory (SM) computer or Symmetric Multiprocessor, the time to access a word in memory is constant for all processors. Such a parallel computer(SM) is said to have a Uniform Memory Access(UMA) 14. What is Non Uniform Memory Access (UMA)? In distributed shared memory computer, The time to access a word in memory local t it is smaller than the time taken to access a word stored in the memory of another computer or a common shared memory. Such a parallel computer(DSm) is said to have a Non Uniform Memory Access(NUMA) 15. What id cache coherence problem? In multiprocessor, there are many caches, one per processor. It is essential to keep the data in given address same in all caches to avoid errors in computation The cache coherence problem arises when a PE writes a data into its private cache in address x but which is not known to the caches of other PEs 16. What is write-through or write-now protocol?
  • 6. If the processor initiate a write request, if the data is in the cache, it overwrites the existing data in the cache. If the protocol is write-now protocol, the data is the main memory is also updated. 17 . What write-back protocol? If the processor initiate a write request, if the data is in the cache, it overwrites the existing data in the cache. If the protocol is write-back protocol, the data is the main memory is also updated only when the cache block in which the data is contained is to be replaces by another block from the main memory. 18. List any two cache coherence protocol?  SNOOPY cache protocol  MESI protocol 19. What is snoopy cache protocol? In multiprocessor, there are many caches, one per processor, and one has to know the status of each of them. A bus based system has the advantage that a transaction involving a cache is broadcast on the bus and other caches can listen to the broadcast. Thus cache coherence protocols are based on cache controllers of each processors listening (called snoopy which means secretly listening) to the broadcast on the bus and taking appropriate action. These protocols are known as snoopy cache protocol 20. What is MESI ? The Pentium cache coherence protocol is known as MESI protocol. This protocol invalidates the shared blocks in caches when new information is written in that block by any PE. When new information is written in any cache block it is not written immediately in the main memory 21. What are the different status of cache block in MESI protocol? Modified(M) The data in cache block has been modified and it is the only copy. Main memory copy is an old copy Exclusive(E) The data in cache block is valid and is the same as in main memory. No other cache has these valid copies Shared(S) The data in cache block is valid and is the same as in main memory. No other caches also have valid copies. Invalid(I) The data in cache block has been invalidated as another cache block has a newly written value
  • 7. 22. What is the difference between single processor system and multi processor system? Single-processor system has only one actual processor, while Multiprocessor system has more than one, both types of systems can have more than one core per processor. Multiple processors per system have long been used in systems that need a lot of processing power, like high traffic servers and when lots of computational power is needed. However these systems have been expensive and not needed by normal home or office users. In recent years it's become typical that one processor has 2, 3, 4 or even 8 cores. These multicore processors behave the same way as if you had multiple processors. One core can only do one task at a time. Multitasking is done by sharing the time of the processor between processes (program), one process runs for a short time, then another, then another or maybe the first one again. The switching is done so fast that the user wont know the difference. Multiple cores can run multiple processes at once for real. It depends on your software how well you computer can use the advantage of having multiple processors/cores, dividing the task to different processes. 23. What is Read Miss and Write Miss? When the required data is not found in the cache during read and request , this situation is called Read Miss and Write Miss 24. What is the mechanism used to ensure the cache coherence in Shared Memory parallel computer using an interconnection Network? The Directory scheme is used to ensure cache coherence in these systems. The main purpose of the directory is to know which blocks are in caches and their status. Suppose a multiprocessor has M blocks in main memory and there are N processors and each processor has a cache. Each memory has an N bit directory entry. If the kth processor’s cache has this block, the kth bit is the directory is set to one 25. What are the different status of main memory in Directory schemed cache coherence? State status bits Explanation Lock bit Modified bit Absent (A) 0 0 All processor’s cache bit in directory 0(No cache holds a copy Present (P) 1 0 one or more processor cache bit is 1
  • 8. Present Exclusive (PM 0 1 Exactly one cache bit is 1 Lock(L) 1 _ An operation is going on involving The block and it is locked 26. What are the advantage of Parallel processing? o Increased throughput (more work done in less time) o Economical o Increased reliability  graceful degradation (fault tolerant) 27. List out the types of Multiprocessor Architecture? • Message-Passing Architectures – Separate address space for each processor. – Processors communicate via message passing. • Shared-Memory Architectures – Single address space shared by all processors. – Processors communicate by memory read/write. – SMP or NUMA. – Cache coherence is important issue. 28. What is Symmetric, Asymmetric multiprocessing?  Asymmetric multiprocessing • Each processor is assigned a specific task; master • processor schedules and allocated work to slave processors • More common in extremely large systems  Symmetric multiprocessing (SMP) • Each processor runs and identical copy of the operating System • Many processes can run at once without performance deterioration • Most modern operating systems support SMP