SlideShare a Scribd company logo
1 of 17
CS422- Parallel and Distributed Computing
By
Zarah Zainab
Course Title : Parallel and Distributed Computing
Course Code : CS422
CrHr : 3
Marks Distribution Criteria
 Quizzes - 10%
 Assignments - 10 %
 Midterm Examination - 30%
 Final Examination - 50%
9/30/2023
2
Content
 Introduction
 What is concurrency?
 Uses, advantages
 Limitations
 Motivating Parallelism
 Scope of parallel computing
9/30/2023
3
What is concurrency?
 Concurrency is the execution of the multiple instruction sequences at the same time.
9/30/2023
4
What is concurrency?
 It happens in the operating system when there are several process threads running in
parallel.
 The running process threads always communicate with each other through shared memory
or message passing.
 Concurrency results in sharing of resources result in problems like deadlocks and resources
starvation.
 It helps in techniques like coordinating execution of processes, memory allocation and
execution scheduling for maximizing throughput.
9/30/2023
5
Uses
 Physical resource sharing : Multiuser environment since hardware resources are limited.
 Logical resource sharing: Shared file(same piece of information).
 Computation speedup: Parallel execution
 Modularity: Divide system functions into separation processes.
9/30/2023
6
Advantages
 Running of multiple applications –
It enable to run multiple applications at the same time.
 Better resource utilization –
It enables that the resources that are unused by one application can be used for other
applications.
 Better average response time –
Without concurrency, each application has to be run to completion before the next one can
be run.
9/30/2023
7
Advantages
 Better performance –
It enables the better performance by the operating system. When one application uses only
the processor and another application uses only the disk drive then the time to run both
applications concurrently to completion will be shorter than the time to run each
application consecutively.
9/30/2023
8
Problems in Concurrency
 Sharing global resources –
Sharing of global resources safely is difficult. If two processes both make use of a global
variable and both perform read and write on that variable, then the order in which various
read and write are executed is critical.
 Optimal allocation of resources –
It is difficult for the operating system to manage the allocation of resources optimally.
9/30/2023
9
Problems in Concurrency
 Locating programming errors –
It is very difficult to locate a programming error because reports are usually not
reproducible.
 Locking the channel –
It may be inefficient for the operating system to simply lock the channel and
prevents its use by other processes.
9/30/2023
10
Limitations
 Non-atomic –
Operations that are non-atomic but interruptible by multiple processes can cause problems.
 Race conditions –
A race condition occurs of the outcome depends on which of several processes gets to a
point first.
 Blocking –
Processes can block waiting for resources. A process could be blocked for long period of
time waiting for input from a terminal. If the process is required to periodically update
some data, this would be very undesirable.
9/30/2023
11
limitation
 Starvation –
It occurs when a process does not obtain service to progress.
 Deadlock –
It occurs when two processes are blocked and hence neither can proceed to execute
9/30/2023
12
Motivating Parallelism
The motivations for parallel processing can be summarized as follows:
 Higher speed, or solving problems faster.
 Higher throughput, or solving more instances of given problems.
 Higher computational power, or solving larger problems.
 speed-up factor.
9/30/2023
13
Scope of parallel computing
 Parallel computing is the simultaneous execution of the same task, split into
subtasks, on multiple processors in order to obtain results faster.
 improves the throughput and computational speed of the system.
 Problem:
 You have a single core, single processor machine and you want to write a word
processing program which also does spelling and grammar check.
9/30/2023
14
Scope of parallel computing
BASIS FOR COMPARISON
CONCURRENCY
PARALLELISM
Basic It is the act of managing and
running multiple computations
at the same time.
It is the act of running multiple
computations simultaneously.
Achieved through Interleaving Operation Using multiple CPU's
Benefits Increased amount of work
accomplished at a time.
Improved throughput, computational
speed-up
Make use of Context switching Multiple CPUs for operating multiple
processes.
Processing units required Probably single Multiple
Example Running multiple applications
at the same time.
Running web crawler on a cluster.
9/30/2023
15
Assignment#1
Q1:write a detailed note on History of computing?
Q2:Enlist the applications of concurrency ?
Deadline: Monday i.e. 18-sep-2023
9/30/2023
16
The END
9/30/2023
17

More Related Content

Similar to week_1Lec01_CS422 (1).pptx

Netezza Deep Dives
Netezza Deep DivesNetezza Deep Dives
Netezza Deep DivesRush Shah
 
Concurrency and Parallelism, Asynchronous Programming, Network Programming
Concurrency and Parallelism, Asynchronous Programming, Network ProgrammingConcurrency and Parallelism, Asynchronous Programming, Network Programming
Concurrency and Parallelism, Asynchronous Programming, Network ProgrammingPrabu U
 
Distributed Computing: An Overview
Distributed Computing: An OverviewDistributed Computing: An Overview
Distributed Computing: An OverviewEswar Publications
 
A Survey of File Replication Techniques In Grid Systems
A Survey of File Replication Techniques In Grid SystemsA Survey of File Replication Techniques In Grid Systems
A Survey of File Replication Techniques In Grid SystemsEditor IJCATR
 
A Survey of File Replication Techniques In Grid Systems
A Survey of File Replication Techniques In Grid SystemsA Survey of File Replication Techniques In Grid Systems
A Survey of File Replication Techniques In Grid SystemsEditor IJCATR
 
Data Distribution Handling on Cloud for Deployment of Big Data
Data Distribution Handling on Cloud for Deployment of Big DataData Distribution Handling on Cloud for Deployment of Big Data
Data Distribution Handling on Cloud for Deployment of Big Dataneirew J
 
Data Distribution Handling on Cloud for Deployment of Big Data
Data Distribution Handling on Cloud for Deployment of Big DataData Distribution Handling on Cloud for Deployment of Big Data
Data Distribution Handling on Cloud for Deployment of Big Dataijccsa
 
cloud computing.pptx
cloud computing.pptxcloud computing.pptx
cloud computing.pptxGayathriP95
 
An asynchronous replication model to improve data available into a heterogene...
An asynchronous replication model to improve data available into a heterogene...An asynchronous replication model to improve data available into a heterogene...
An asynchronous replication model to improve data available into a heterogene...Alexander Decker
 
Summary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
Summary of Simultaneous Multithreading: Maximizing On-Chip ParallelismSummary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
Summary of Simultaneous Multithreading: Maximizing On-Chip ParallelismFarwa Ansari
 
Procesamiento multinúcleo óptimo para aplicaciones críticas de seguridad
 Procesamiento multinúcleo óptimo para aplicaciones críticas de seguridad Procesamiento multinúcleo óptimo para aplicaciones críticas de seguridad
Procesamiento multinúcleo óptimo para aplicaciones críticas de seguridadMarketing Donalba
 
Symmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelSymmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelManoraj Pannerselum
 
Pmit 6102-14-lec1-intro
Pmit 6102-14-lec1-introPmit 6102-14-lec1-intro
Pmit 6102-14-lec1-introJesmin Rahaman
 
Cluster computing pptl (2)
Cluster computing pptl (2)Cluster computing pptl (2)
Cluster computing pptl (2)Rohit Jain
 

Similar to week_1Lec01_CS422 (1).pptx (20)

Netezza Deep Dives
Netezza Deep DivesNetezza Deep Dives
Netezza Deep Dives
 
Concurrency and Parallelism, Asynchronous Programming, Network Programming
Concurrency and Parallelism, Asynchronous Programming, Network ProgrammingConcurrency and Parallelism, Asynchronous Programming, Network Programming
Concurrency and Parallelism, Asynchronous Programming, Network Programming
 
Distributed Computing: An Overview
Distributed Computing: An OverviewDistributed Computing: An Overview
Distributed Computing: An Overview
 
A Survey of File Replication Techniques In Grid Systems
A Survey of File Replication Techniques In Grid SystemsA Survey of File Replication Techniques In Grid Systems
A Survey of File Replication Techniques In Grid Systems
 
Ijcatr04071003
Ijcatr04071003Ijcatr04071003
Ijcatr04071003
 
A Survey of File Replication Techniques In Grid Systems
A Survey of File Replication Techniques In Grid SystemsA Survey of File Replication Techniques In Grid Systems
A Survey of File Replication Techniques In Grid Systems
 
OS-UNIT-1-Part-1.pptx
OS-UNIT-1-Part-1.pptxOS-UNIT-1-Part-1.pptx
OS-UNIT-1-Part-1.pptx
 
My sql
My sqlMy sql
My sql
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
 
Data Distribution Handling on Cloud for Deployment of Big Data
Data Distribution Handling on Cloud for Deployment of Big DataData Distribution Handling on Cloud for Deployment of Big Data
Data Distribution Handling on Cloud for Deployment of Big Data
 
Data Distribution Handling on Cloud for Deployment of Big Data
Data Distribution Handling on Cloud for Deployment of Big DataData Distribution Handling on Cloud for Deployment of Big Data
Data Distribution Handling on Cloud for Deployment of Big Data
 
cloud computing.pptx
cloud computing.pptxcloud computing.pptx
cloud computing.pptx
 
An asynchronous replication model to improve data available into a heterogene...
An asynchronous replication model to improve data available into a heterogene...An asynchronous replication model to improve data available into a heterogene...
An asynchronous replication model to improve data available into a heterogene...
 
Summary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
Summary of Simultaneous Multithreading: Maximizing On-Chip ParallelismSummary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
Summary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
 
Procesamiento multinúcleo óptimo para aplicaciones críticas de seguridad
 Procesamiento multinúcleo óptimo para aplicaciones críticas de seguridad Procesamiento multinúcleo óptimo para aplicaciones críticas de seguridad
Procesamiento multinúcleo óptimo para aplicaciones críticas de seguridad
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Symmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelSymmetric multiprocessing and Microkernel
Symmetric multiprocessing and Microkernel
 
ICICCE0298
ICICCE0298ICICCE0298
ICICCE0298
 
Pmit 6102-14-lec1-intro
Pmit 6102-14-lec1-introPmit 6102-14-lec1-intro
Pmit 6102-14-lec1-intro
 
Cluster computing pptl (2)
Cluster computing pptl (2)Cluster computing pptl (2)
Cluster computing pptl (2)
 

Recently uploaded

NACO GUIDELINES IN TREATING HIV IN PREGNANCY.pptx
NACO GUIDELINES IN TREATING HIV IN PREGNANCY.pptxNACO GUIDELINES IN TREATING HIV IN PREGNANCY.pptx
NACO GUIDELINES IN TREATING HIV IN PREGNANCY.pptxShifanaFEBINP
 
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...Specialize in a MSc within Biomanufacturing, and work part-time as Process En...
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...Juli Boned
 
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...rightmanforbloodline
 
Rahul Chauhan - Data Scientist Resume.pdf
Rahul Chauhan - Data Scientist Resume.pdfRahul Chauhan - Data Scientist Resume.pdf
Rahul Chauhan - Data Scientist Resume.pdfrach3246
 
如何办理(USC毕业证书)南加利福尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USC毕业证书)南加利福尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(USC毕业证书)南加利福尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USC毕业证书)南加利福尼亚大学毕业证成绩单本科硕士学位证留信学历认证gakamzu
 
Prest Reed Portfolio revamp Full Sail Presentation 2
Prest Reed Portfolio revamp Full Sail Presentation 2Prest Reed Portfolio revamp Full Sail Presentation 2
Prest Reed Portfolio revamp Full Sail Presentation 25203records
 
Master SEO in 2024 - The Complete Beginner's Guide
Master SEO in 2024 - The Complete Beginner's GuideMaster SEO in 2024 - The Complete Beginner's Guide
Master SEO in 2024 - The Complete Beginner's GuideTechEasifyInfotech
 
b-sc-agri-course-curriculum.pdf for Karnataka state board
b-sc-agri-course-curriculum.pdf for Karnataka state boardb-sc-agri-course-curriculum.pdf for Karnataka state board
b-sc-agri-course-curriculum.pdf for Karnataka state boardramyaul734
 
Career opportunities after 12th Science 2024 Biology group
Career opportunities after 12th Science 2024 Biology groupCareer opportunities after 12th Science 2024 Biology group
Career opportunities after 12th Science 2024 Biology groupMohmmedirfan Momin
 
Fracture design PowerPoint presentations
Fracture design PowerPoint presentationsFracture design PowerPoint presentations
Fracture design PowerPoint presentationsjitiniift
 
Rachel_Ochsenschlager_Resume_May_2024.docx
Rachel_Ochsenschlager_Resume_May_2024.docxRachel_Ochsenschlager_Resume_May_2024.docx
Rachel_Ochsenschlager_Resume_May_2024.docxRachel Ochsenschlager
 
UIowa Application Instructions - 2024 Update
UIowa Application Instructions - 2024 UpdateUIowa Application Instructions - 2024 Update
UIowa Application Instructions - 2024 UpdateUniversity of Iowa
 
Ochsen Screenplay Coverage - JACOB - 10.16.23.pdf
Ochsen Screenplay Coverage - JACOB - 10.16.23.pdfOchsen Screenplay Coverage - JACOB - 10.16.23.pdf
Ochsen Screenplay Coverage - JACOB - 10.16.23.pdfRachel Ochsenschlager
 
如何办理(UST毕业证书)圣托马斯大学毕业证成绩单原件一模一样
如何办理(UST毕业证书)圣托马斯大学毕业证成绩单原件一模一样如何办理(UST毕业证书)圣托马斯大学毕业证成绩单原件一模一样
如何办理(UST毕业证书)圣托马斯大学毕业证成绩单原件一模一样muwyto
 
B.tech Civil Engineering Major Project by Deepak Kumar ppt.pdf
B.tech Civil Engineering Major Project by Deepak Kumar ppt.pdfB.tech Civil Engineering Major Project by Deepak Kumar ppt.pdf
B.tech Civil Engineering Major Project by Deepak Kumar ppt.pdfDeepak15CivilEngg
 
Crafting an effective CV for AYUSH Doctors.pdf
Crafting an effective CV for AYUSH Doctors.pdfCrafting an effective CV for AYUSH Doctors.pdf
Crafting an effective CV for AYUSH Doctors.pdfShri Dr Arul Selvan
 
Novo Nordisk Kalundborg. We are expanding our manufacturing hub in Kalundborg...
Novo Nordisk Kalundborg. We are expanding our manufacturing hub in Kalundborg...Novo Nordisk Kalundborg. We are expanding our manufacturing hub in Kalundborg...
Novo Nordisk Kalundborg. We are expanding our manufacturing hub in Kalundborg...Juli Boned
 
B.tech civil major project by Deepak Kumar
B.tech civil major project by Deepak KumarB.tech civil major project by Deepak Kumar
B.tech civil major project by Deepak KumarDeepak15CivilEngg
 
如何办理(VIU毕业证书)温哥华岛大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(VIU毕业证书)温哥华岛大学毕业证成绩单本科硕士学位证留信学历认证如何办理(VIU毕业证书)温哥华岛大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(VIU毕业证书)温哥华岛大学毕业证成绩单本科硕士学位证留信学历认证gkyvm
 
Mallu Aunts ℂall Girls Ahmedabad ℂall Us 6378878445 Top ℂlass ℂall Girl Servi...
Mallu Aunts ℂall Girls Ahmedabad ℂall Us 6378878445 Top ℂlass ℂall Girl Servi...Mallu Aunts ℂall Girls Ahmedabad ℂall Us 6378878445 Top ℂlass ℂall Girl Servi...
Mallu Aunts ℂall Girls Ahmedabad ℂall Us 6378878445 Top ℂlass ℂall Girl Servi...anjli garg#k09
 

Recently uploaded (20)

NACO GUIDELINES IN TREATING HIV IN PREGNANCY.pptx
NACO GUIDELINES IN TREATING HIV IN PREGNANCY.pptxNACO GUIDELINES IN TREATING HIV IN PREGNANCY.pptx
NACO GUIDELINES IN TREATING HIV IN PREGNANCY.pptx
 
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...Specialize in a MSc within Biomanufacturing, and work part-time as Process En...
Specialize in a MSc within Biomanufacturing, and work part-time as Process En...
 
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...
 
Rahul Chauhan - Data Scientist Resume.pdf
Rahul Chauhan - Data Scientist Resume.pdfRahul Chauhan - Data Scientist Resume.pdf
Rahul Chauhan - Data Scientist Resume.pdf
 
如何办理(USC毕业证书)南加利福尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USC毕业证书)南加利福尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(USC毕业证书)南加利福尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USC毕业证书)南加利福尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
Prest Reed Portfolio revamp Full Sail Presentation 2
Prest Reed Portfolio revamp Full Sail Presentation 2Prest Reed Portfolio revamp Full Sail Presentation 2
Prest Reed Portfolio revamp Full Sail Presentation 2
 
Master SEO in 2024 - The Complete Beginner's Guide
Master SEO in 2024 - The Complete Beginner's GuideMaster SEO in 2024 - The Complete Beginner's Guide
Master SEO in 2024 - The Complete Beginner's Guide
 
b-sc-agri-course-curriculum.pdf for Karnataka state board
b-sc-agri-course-curriculum.pdf for Karnataka state boardb-sc-agri-course-curriculum.pdf for Karnataka state board
b-sc-agri-course-curriculum.pdf for Karnataka state board
 
Career opportunities after 12th Science 2024 Biology group
Career opportunities after 12th Science 2024 Biology groupCareer opportunities after 12th Science 2024 Biology group
Career opportunities after 12th Science 2024 Biology group
 
Fracture design PowerPoint presentations
Fracture design PowerPoint presentationsFracture design PowerPoint presentations
Fracture design PowerPoint presentations
 
Rachel_Ochsenschlager_Resume_May_2024.docx
Rachel_Ochsenschlager_Resume_May_2024.docxRachel_Ochsenschlager_Resume_May_2024.docx
Rachel_Ochsenschlager_Resume_May_2024.docx
 
UIowa Application Instructions - 2024 Update
UIowa Application Instructions - 2024 UpdateUIowa Application Instructions - 2024 Update
UIowa Application Instructions - 2024 Update
 
Ochsen Screenplay Coverage - JACOB - 10.16.23.pdf
Ochsen Screenplay Coverage - JACOB - 10.16.23.pdfOchsen Screenplay Coverage - JACOB - 10.16.23.pdf
Ochsen Screenplay Coverage - JACOB - 10.16.23.pdf
 
如何办理(UST毕业证书)圣托马斯大学毕业证成绩单原件一模一样
如何办理(UST毕业证书)圣托马斯大学毕业证成绩单原件一模一样如何办理(UST毕业证书)圣托马斯大学毕业证成绩单原件一模一样
如何办理(UST毕业证书)圣托马斯大学毕业证成绩单原件一模一样
 
B.tech Civil Engineering Major Project by Deepak Kumar ppt.pdf
B.tech Civil Engineering Major Project by Deepak Kumar ppt.pdfB.tech Civil Engineering Major Project by Deepak Kumar ppt.pdf
B.tech Civil Engineering Major Project by Deepak Kumar ppt.pdf
 
Crafting an effective CV for AYUSH Doctors.pdf
Crafting an effective CV for AYUSH Doctors.pdfCrafting an effective CV for AYUSH Doctors.pdf
Crafting an effective CV for AYUSH Doctors.pdf
 
Novo Nordisk Kalundborg. We are expanding our manufacturing hub in Kalundborg...
Novo Nordisk Kalundborg. We are expanding our manufacturing hub in Kalundborg...Novo Nordisk Kalundborg. We are expanding our manufacturing hub in Kalundborg...
Novo Nordisk Kalundborg. We are expanding our manufacturing hub in Kalundborg...
 
B.tech civil major project by Deepak Kumar
B.tech civil major project by Deepak KumarB.tech civil major project by Deepak Kumar
B.tech civil major project by Deepak Kumar
 
如何办理(VIU毕业证书)温哥华岛大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(VIU毕业证书)温哥华岛大学毕业证成绩单本科硕士学位证留信学历认证如何办理(VIU毕业证书)温哥华岛大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(VIU毕业证书)温哥华岛大学毕业证成绩单本科硕士学位证留信学历认证
 
Mallu Aunts ℂall Girls Ahmedabad ℂall Us 6378878445 Top ℂlass ℂall Girl Servi...
Mallu Aunts ℂall Girls Ahmedabad ℂall Us 6378878445 Top ℂlass ℂall Girl Servi...Mallu Aunts ℂall Girls Ahmedabad ℂall Us 6378878445 Top ℂlass ℂall Girl Servi...
Mallu Aunts ℂall Girls Ahmedabad ℂall Us 6378878445 Top ℂlass ℂall Girl Servi...
 

week_1Lec01_CS422 (1).pptx

  • 1. CS422- Parallel and Distributed Computing By Zarah Zainab Course Title : Parallel and Distributed Computing Course Code : CS422 CrHr : 3
  • 2. Marks Distribution Criteria  Quizzes - 10%  Assignments - 10 %  Midterm Examination - 30%  Final Examination - 50% 9/30/2023 2
  • 3. Content  Introduction  What is concurrency?  Uses, advantages  Limitations  Motivating Parallelism  Scope of parallel computing 9/30/2023 3
  • 4. What is concurrency?  Concurrency is the execution of the multiple instruction sequences at the same time. 9/30/2023 4
  • 5. What is concurrency?  It happens in the operating system when there are several process threads running in parallel.  The running process threads always communicate with each other through shared memory or message passing.  Concurrency results in sharing of resources result in problems like deadlocks and resources starvation.  It helps in techniques like coordinating execution of processes, memory allocation and execution scheduling for maximizing throughput. 9/30/2023 5
  • 6. Uses  Physical resource sharing : Multiuser environment since hardware resources are limited.  Logical resource sharing: Shared file(same piece of information).  Computation speedup: Parallel execution  Modularity: Divide system functions into separation processes. 9/30/2023 6
  • 7. Advantages  Running of multiple applications – It enable to run multiple applications at the same time.  Better resource utilization – It enables that the resources that are unused by one application can be used for other applications.  Better average response time – Without concurrency, each application has to be run to completion before the next one can be run. 9/30/2023 7
  • 8. Advantages  Better performance – It enables the better performance by the operating system. When one application uses only the processor and another application uses only the disk drive then the time to run both applications concurrently to completion will be shorter than the time to run each application consecutively. 9/30/2023 8
  • 9. Problems in Concurrency  Sharing global resources – Sharing of global resources safely is difficult. If two processes both make use of a global variable and both perform read and write on that variable, then the order in which various read and write are executed is critical.  Optimal allocation of resources – It is difficult for the operating system to manage the allocation of resources optimally. 9/30/2023 9
  • 10. Problems in Concurrency  Locating programming errors – It is very difficult to locate a programming error because reports are usually not reproducible.  Locking the channel – It may be inefficient for the operating system to simply lock the channel and prevents its use by other processes. 9/30/2023 10
  • 11. Limitations  Non-atomic – Operations that are non-atomic but interruptible by multiple processes can cause problems.  Race conditions – A race condition occurs of the outcome depends on which of several processes gets to a point first.  Blocking – Processes can block waiting for resources. A process could be blocked for long period of time waiting for input from a terminal. If the process is required to periodically update some data, this would be very undesirable. 9/30/2023 11
  • 12. limitation  Starvation – It occurs when a process does not obtain service to progress.  Deadlock – It occurs when two processes are blocked and hence neither can proceed to execute 9/30/2023 12
  • 13. Motivating Parallelism The motivations for parallel processing can be summarized as follows:  Higher speed, or solving problems faster.  Higher throughput, or solving more instances of given problems.  Higher computational power, or solving larger problems.  speed-up factor. 9/30/2023 13
  • 14. Scope of parallel computing  Parallel computing is the simultaneous execution of the same task, split into subtasks, on multiple processors in order to obtain results faster.  improves the throughput and computational speed of the system.  Problem:  You have a single core, single processor machine and you want to write a word processing program which also does spelling and grammar check. 9/30/2023 14
  • 15. Scope of parallel computing BASIS FOR COMPARISON CONCURRENCY PARALLELISM Basic It is the act of managing and running multiple computations at the same time. It is the act of running multiple computations simultaneously. Achieved through Interleaving Operation Using multiple CPU's Benefits Increased amount of work accomplished at a time. Improved throughput, computational speed-up Make use of Context switching Multiple CPUs for operating multiple processes. Processing units required Probably single Multiple Example Running multiple applications at the same time. Running web crawler on a cluster. 9/30/2023 15
  • 16. Assignment#1 Q1:write a detailed note on History of computing? Q2:Enlist the applications of concurrency ? Deadline: Monday i.e. 18-sep-2023 9/30/2023 16