SlideShare a Scribd company logo
1 of 21
Parallel and Distributed Computing
(Lecture # 01) (Part 01)
1
Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
Instructor Information
Name:
Muhammad Haroon (MSCS from BZU)
(PhD Scholar in Computer Science from HITEC University)
Contact information:
mr.harunahmad2014@gmail.com
Domain:
Machine Learning, Artificial Intelligence, Deep Learning, Data Science,
Image Processing, Computer Vision, Natural Language Processing,
Mobile Apps, Websites
Course Information
Name
Parallel and Distributed Computing
Lectures
16
Quizzes
10
Assignments
10
Attendance
75%
Semester Report + Project +Presentation
01
Note: The plagiarism & cheating cases would be reported to the Disciplinary Committee.
Classroom rules
Don’t
 Ask for leave
 Ask for quiz re-take
 Ask for assignment re-submit
 Ask for mobile call
 Ask for break
 20 minutes break
Overview of Course
At the end of the course the students will be able to:
 Write portable programs for parallel or distributed architectures using
Message-Passing Interface (MPI) library
 Analytical modelling and performance of parallel programs.
 Analyze complex problems with shared memory programming with
openMP.
5
Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
DISTRIBUTED SYSTEMS
Principles and Paradigms
(Lecture # 01)
6
Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
What is an Operating System
An operating system is:
A collection of software components that
 Provides useful abstractions and Manages resources to Support
application programs, and Provide an interface for users and programs
7
Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
Operating System Functions
An operating system’s main functions are to:
 Schedule processes & multiplex CPU
 Provide mechanisms for IPC and synchronization
 Manage main memory
 Manage other resources
 Provide convenient persistent storage (files)
 Maintain system integrity, handle failures
 Enforce security policies (e.g., access control)
 Give users and processes an interface
8
Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
Definition of a Distributed System (1)
A distributed system is (Tannenbaum):
 A collection of independent computers that appears to its users as a
single coherent system.
A distributed system is (Lamport):
 One in which the failure of a computer you didn't even know existed can
render your own computer unusable
9
Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
Properties of Distributed Systems
 Concurrency
 Multicore systems
 Multiple hosts
 No global clock
 Theoretical impossibility
 Expense of accurate clocks
 Independent view
 Message delay, failure
 Impossible to distinguish slow vs. failed node
 Independent failure
 Message delivery (loss, corruption)
 Nodes (fail-stop)
10
Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
Software Concepts
An overview of
 NOS (Network Operating Systems)
 DOS (Distributed Operating Systems)
 Middleware
System Description Main Goal
DOS
Tightly-coupled operating system for multi-
processors and homogeneous
multicomputers
Hide and manage
hardware
resources
NOS
Loosely-coupled operating system for
heterogeneous multicomputers (LAN and
WAN)
Offer local
services to remote
clients
Middleware
Additional layer atop of NOS implementing
general-purpose services
Provide
distribution
transparency
Definition of a Distributed System (2)
Figure 1-1. A distributed system organized as middleware. The middleware
layer extends over multiple machines and offers each application the
same interface.
Transparency in a Distributed System
Figure 1-2. Different forms of transparency in a distributed
system (ISO, 1995).
Other forms:
Parallelism – Hide the number of nodes working on a task
Size – Hide the number of components in the system
Revision – Hide changes in software/hardware versions
Challenges
 Performance
 Concurrency
 Failures
 Scalability
 System updates/growth
 Heterogeneity
 Openness
 Multiplicity of ownership, authority
 Security
 Quality of service/user experience
 Transparency
 Debugging
Approaches
 Virtual clocks
 Group communication
 Heartbeats/failure detection, group membership
 Distributed agreement, snapshots
 Leader election
 Transaction protocols
 Redundancy, replication, caching
 Indirection - naming
 Distributed mutual exclusion
 Middleware, modularization, layering
 Decomposition vs. integration
 Cryptographic protocols
Scalability Problems
Figure 1-3. Examples of scalability limitations.
Engineering = art of compromise (making tradeoffs)
Distributed systems – many theoretical results on lower bounds of
tradeoffs that limit practical solutions
Scalability Examples
Distributed systems are ubiquitous and necessary:
 Web search
 Financial transactions
 Multiplayer games
 DNS
 Travel reservation systems
 Utility infrastructure (e.g., power grid)
 Embedded systems (e.g., cars)
 Sensor networks
Failure to scale is fatal
 Instagram – share cellphone pix
 Facebook IPO
Web Search
Google uses thousands of machines to
 Provide search results
 Run Page-Rank algorithm
Issues
 Connecting large number of machines
 Distributed file system (GFS)
 Indexing
 Programming model
 Scaling up when current system reaches limits
Financial Transactions
Volume is huge
 4 million messages per second
 50 million things you can trade
Requirements are stringent
 Low latency
 24/7 operation (around the world)
 Failure “is not an option”
 Facebook NASDAQ Freeze
 Transaction system overwhelmed
 Hours to complete transactions in falling market
Multiplayer Games
Very popular – huge market
Characteristics
 May have millions of players
 Players operate in same “world”
 Players interact with world, each other
Issues
 Number of users
 Latency, consistency
 Coordination of multiple servers
 Architecture???
End
21
Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com

More Related Content

What's hot

Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dosvanamali_vanu
 
Distributed system unit II according to syllabus of RGPV, Bhopal
Distributed system unit II according to syllabus of  RGPV, BhopalDistributed system unit II according to syllabus of  RGPV, Bhopal
Distributed system unit II according to syllabus of RGPV, BhopalNANDINI SHARMA
 
Lecture 1 introduction to parallel and distributed computing
Lecture 1   introduction to parallel and distributed computingLecture 1   introduction to parallel and distributed computing
Lecture 1 introduction to parallel and distributed computingVajira Thambawita
 
Distributed system notes unit I
Distributed system notes unit IDistributed system notes unit I
Distributed system notes unit INANDINI SHARMA
 
Lecture 1 (distributed systems)
Lecture 1 (distributed systems)Lecture 1 (distributed systems)
Lecture 1 (distributed systems)Fazli Amin
 
Distributed and Cloud Computing 1st Edition Hwang Solutions Manual
Distributed and Cloud Computing 1st Edition Hwang Solutions ManualDistributed and Cloud Computing 1st Edition Hwang Solutions Manual
Distributed and Cloud Computing 1st Edition Hwang Solutions Manualkyxeminut
 
Computer Network Unit I RGPV
Computer Network Unit I RGPV Computer Network Unit I RGPV
Computer Network Unit I RGPV NANDINI SHARMA
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systemsSHATHAN
 
16.Distributed System Structure
16.Distributed System Structure16.Distributed System Structure
16.Distributed System StructureSenthil Kanth
 
Distributed systems1
Distributed systems1Distributed systems1
Distributed systems1Sumita Das
 
Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance SHIKHA GAUTAM
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systemsnaveedchak
 
Distributed computing
Distributed computingDistributed computing
Distributed computingrohitsalunke
 

What's hot (20)

Computer network solution
Computer network solutionComputer network solution
Computer network solution
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dos
 
Distributed system unit II according to syllabus of RGPV, Bhopal
Distributed system unit II according to syllabus of  RGPV, BhopalDistributed system unit II according to syllabus of  RGPV, Bhopal
Distributed system unit II according to syllabus of RGPV, Bhopal
 
Lecture 1 introduction to parallel and distributed computing
Lecture 1   introduction to parallel and distributed computingLecture 1   introduction to parallel and distributed computing
Lecture 1 introduction to parallel and distributed computing
 
Distributed system notes unit I
Distributed system notes unit IDistributed system notes unit I
Distributed system notes unit I
 
Lecture 1 (distributed systems)
Lecture 1 (distributed systems)Lecture 1 (distributed systems)
Lecture 1 (distributed systems)
 
Distributed and Cloud Computing 1st Edition Hwang Solutions Manual
Distributed and Cloud Computing 1st Edition Hwang Solutions ManualDistributed and Cloud Computing 1st Edition Hwang Solutions Manual
Distributed and Cloud Computing 1st Edition Hwang Solutions Manual
 
Computer Network Unit I RGPV
Computer Network Unit I RGPV Computer Network Unit I RGPV
Computer Network Unit I RGPV
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systems
 
Computer networks
Computer networksComputer networks
Computer networks
 
1.intro. to distributed system
1.intro. to distributed system1.intro. to distributed system
1.intro. to distributed system
 
16.Distributed System Structure
16.Distributed System Structure16.Distributed System Structure
16.Distributed System Structure
 
Distributed systems1
Distributed systems1Distributed systems1
Distributed systems1
 
Fundamentals
FundamentalsFundamentals
Fundamentals
 
Dos unit1
Dos unit1Dos unit1
Dos unit1
 
Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
 
Computer netwrks
Computer netwrksComputer netwrks
Computer netwrks
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 
Mcq for final
Mcq for finalMcq for final
Mcq for final
 

Similar to Lecture 01 - Chapter 1 (Part 01): Some basic concept of Operating System (OS), Parallel & Distributed Computing

Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.pptbalewayalew
 
01_Cloud_computing_Background_Distributed_Systems.pdf
01_Cloud_computing_Background_Distributed_Systems.pdf01_Cloud_computing_Background_Distributed_Systems.pdf
01_Cloud_computing_Background_Distributed_Systems.pdfHossainOrnob
 
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT JaipurDistributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT JaipurDrNilam Choudhary
 
Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.pptsirajmohammed35
 
Distributed Processing
Distributed ProcessingDistributed Processing
Distributed ProcessingImtiaz Hussain
 
Distributed Computing system
Distributed Computing system Distributed Computing system
Distributed Computing system Sarvesh Meena
 
01 - Introduction to Distributed Systems
01 - Introduction to Distributed Systems01 - Introduction to Distributed Systems
01 - Introduction to Distributed SystemsDilum Bandara
 
1 distributed-systems-template-modified
1 distributed-systems-template-modified1 distributed-systems-template-modified
1 distributed-systems-template-modifiedzafargilani
 
CLOUD COMPUTING CHANTI-130 ( FOR THE COMPUTING2).pdf
CLOUD COMPUTING CHANTI-130 ( FOR THE COMPUTING2).pdfCLOUD COMPUTING CHANTI-130 ( FOR THE COMPUTING2).pdf
CLOUD COMPUTING CHANTI-130 ( FOR THE COMPUTING2).pdfyadavkarthik4437
 
Chapter 1 introduction
Chapter 1 introductionChapter 1 introduction
Chapter 1 introductionTamrat Amare
 
Chapter 1 -_characterization_of_distributed_systems
Chapter 1 -_characterization_of_distributed_systemsChapter 1 -_characterization_of_distributed_systems
Chapter 1 -_characterization_of_distributed_systemsFrancelyno Murela
 
Linking Programming models between Grids, Web 2.0 and Multicore
Linking Programming models between Grids, Web 2.0 and Multicore Linking Programming models between Grids, Web 2.0 and Multicore
Linking Programming models between Grids, Web 2.0 and Multicore Geoffrey Fox
 

Similar to Lecture 01 - Chapter 1 (Part 01): Some basic concept of Operating System (OS), Parallel & Distributed Computing (20)

Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.ppt
 
01_Cloud_computing_Background_Distributed_Systems.pdf
01_Cloud_computing_Background_Distributed_Systems.pdf01_Cloud_computing_Background_Distributed_Systems.pdf
01_Cloud_computing_Background_Distributed_Systems.pdf
 
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT JaipurDistributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
 
18CS3040 DISTRIBUTED SYSTEMS
18CS3040 DISTRIBUTED SYSTEMS18CS3040 DISTRIBUTED SYSTEMS
18CS3040 DISTRIBUTED SYSTEMS
 
Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.ppt
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
 
istributed system
istributed systemistributed system
istributed system
 
Distributed Processing
Distributed ProcessingDistributed Processing
Distributed Processing
 
Distributed Computing system
Distributed Computing system Distributed Computing system
Distributed Computing system
 
Distributed systems
Distributed systemsDistributed systems
Distributed systems
 
20CS2021 DISTRIBUTED COMPUTING
20CS2021 DISTRIBUTED COMPUTING20CS2021 DISTRIBUTED COMPUTING
20CS2021 DISTRIBUTED COMPUTING
 
01 - Introduction to Distributed Systems
01 - Introduction to Distributed Systems01 - Introduction to Distributed Systems
01 - Introduction to Distributed Systems
 
1 distributed-systems-template-modified
1 distributed-systems-template-modified1 distributed-systems-template-modified
1 distributed-systems-template-modified
 
CLOUD COMPUTING CHANTI-130 ( FOR THE COMPUTING2).pdf
CLOUD COMPUTING CHANTI-130 ( FOR THE COMPUTING2).pdfCLOUD COMPUTING CHANTI-130 ( FOR THE COMPUTING2).pdf
CLOUD COMPUTING CHANTI-130 ( FOR THE COMPUTING2).pdf
 
Cloud Computing
Cloud Computing Cloud Computing
Cloud Computing
 
Distributed Systems.pptx
Distributed Systems.pptxDistributed Systems.pptx
Distributed Systems.pptx
 
Chapter 1 introduction
Chapter 1 introductionChapter 1 introduction
Chapter 1 introduction
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Chapter 1 -_characterization_of_distributed_systems
Chapter 1 -_characterization_of_distributed_systemsChapter 1 -_characterization_of_distributed_systems
Chapter 1 -_characterization_of_distributed_systems
 
Linking Programming models between Grids, Web 2.0 and Multicore
Linking Programming models between Grids, Web 2.0 and Multicore Linking Programming models between Grids, Web 2.0 and Multicore
Linking Programming models between Grids, Web 2.0 and Multicore
 

More from National College of Business Administration & Economics ( NCBA&E)

More from National College of Business Administration & Economics ( NCBA&E) (15)

Lecturre 07 - Chapter 05 - Basic Communications Operations
Lecturre 07 - Chapter 05 - Basic Communications  OperationsLecturre 07 - Chapter 05 - Basic Communications  Operations
Lecturre 07 - Chapter 05 - Basic Communications Operations
 
Lecture 05 - Chapter 03 - Examples
Lecture 05 - Chapter 03 - ExamplesLecture 05 - Chapter 03 - Examples
Lecture 05 - Chapter 03 - Examples
 
Lecture # 02 - OOP with Python Language by Muhammad Haroon
Lecture # 02 - OOP with Python Language by Muhammad HaroonLecture # 02 - OOP with Python Language by Muhammad Haroon
Lecture # 02 - OOP with Python Language by Muhammad Haroon
 
Lecture 01 - Basic Concept About OOP With Python
Lecture 01 - Basic Concept About OOP With PythonLecture 01 - Basic Concept About OOP With Python
Lecture 01 - Basic Concept About OOP With Python
 
Lecture01 Part(B) - Installing Visual Studio Code On All Version Of Windows O...
Lecture01 Part(B) - Installing Visual Studio Code On All Version Of Windows O...Lecture01 Part(B) - Installing Visual Studio Code On All Version Of Windows O...
Lecture01 Part(B) - Installing Visual Studio Code On All Version Of Windows O...
 
Lecture02 - Fundamental Programming with Python Language
Lecture02 - Fundamental Programming with Python LanguageLecture02 - Fundamental Programming with Python Language
Lecture02 - Fundamental Programming with Python Language
 
Lecture01 - Fundamental Programming with Python Language
Lecture01 - Fundamental Programming with Python LanguageLecture01 - Fundamental Programming with Python Language
Lecture01 - Fundamental Programming with Python Language
 
Lecture 04 (Part 01) - Measure of Location
Lecture 04 (Part 01) - Measure of LocationLecture 04 (Part 01) - Measure of Location
Lecture 04 (Part 01) - Measure of Location
 
Lecture 03 Part 02 - All Examples of Chapter 02 by Muhammad Haroon
Lecture 03 Part 02 - All Examples of Chapter 02 by Muhammad HaroonLecture 03 Part 02 - All Examples of Chapter 02 by Muhammad Haroon
Lecture 03 Part 02 - All Examples of Chapter 02 by Muhammad Haroon
 
Lecture 03 - Chapter 02 - Part 02 - Probability & Statistics by Muhammad Haroon
Lecture 03 - Chapter 02 - Part 02 - Probability & Statistics by Muhammad HaroonLecture 03 - Chapter 02 - Part 02 - Probability & Statistics by Muhammad Haroon
Lecture 03 - Chapter 02 - Part 02 - Probability & Statistics by Muhammad Haroon
 
Lecture 03 - Chapter 02 - Part 01 - Probability & Statistics by Muhammad Haroon
Lecture 03 - Chapter 02 - Part 01 - Probability & Statistics by Muhammad HaroonLecture 03 - Chapter 02 - Part 01 - Probability & Statistics by Muhammad Haroon
Lecture 03 - Chapter 02 - Part 01 - Probability & Statistics by Muhammad Haroon
 
Lecture 02 - Chapter 01 - Probability & Statistics by Muhammad Haroon
Lecture 02 - Chapter 01 - Probability & Statistics by Muhammad HaroonLecture 02 - Chapter 01 - Probability & Statistics by Muhammad Haroon
Lecture 02 - Chapter 01 - Probability & Statistics by Muhammad Haroon
 
WHO director-general's opening remarks at the media briefing on covid-19 - 23...
WHO director-general's opening remarks at the media briefing on covid-19 - 23...WHO director-general's opening remarks at the media briefing on covid-19 - 23...
WHO director-general's opening remarks at the media briefing on covid-19 - 23...
 
Lecture 01 - Some basic terminology, History, Application of statistics - Def...
Lecture 01 - Some basic terminology, History, Application of statistics - Def...Lecture 01 - Some basic terminology, History, Application of statistics - Def...
Lecture 01 - Some basic terminology, History, Application of statistics - Def...
 
Course Outline of Probability & Statistics
Course Outline of Probability & StatisticsCourse Outline of Probability & Statistics
Course Outline of Probability & Statistics
 

Recently uploaded

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
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...Association for Project Management
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
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.pptxDenish Jangid
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 

Recently uploaded (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
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...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
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
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

Lecture 01 - Chapter 1 (Part 01): Some basic concept of Operating System (OS), Parallel & Distributed Computing

  • 1. Parallel and Distributed Computing (Lecture # 01) (Part 01) 1 Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
  • 2. Instructor Information Name: Muhammad Haroon (MSCS from BZU) (PhD Scholar in Computer Science from HITEC University) Contact information: mr.harunahmad2014@gmail.com Domain: Machine Learning, Artificial Intelligence, Deep Learning, Data Science, Image Processing, Computer Vision, Natural Language Processing, Mobile Apps, Websites
  • 3. Course Information Name Parallel and Distributed Computing Lectures 16 Quizzes 10 Assignments 10 Attendance 75% Semester Report + Project +Presentation 01 Note: The plagiarism & cheating cases would be reported to the Disciplinary Committee.
  • 4. Classroom rules Don’t  Ask for leave  Ask for quiz re-take  Ask for assignment re-submit  Ask for mobile call  Ask for break  20 minutes break
  • 5. Overview of Course At the end of the course the students will be able to:  Write portable programs for parallel or distributed architectures using Message-Passing Interface (MPI) library  Analytical modelling and performance of parallel programs.  Analyze complex problems with shared memory programming with openMP. 5 Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
  • 6. DISTRIBUTED SYSTEMS Principles and Paradigms (Lecture # 01) 6 Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
  • 7. What is an Operating System An operating system is: A collection of software components that  Provides useful abstractions and Manages resources to Support application programs, and Provide an interface for users and programs 7 Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
  • 8. Operating System Functions An operating system’s main functions are to:  Schedule processes & multiplex CPU  Provide mechanisms for IPC and synchronization  Manage main memory  Manage other resources  Provide convenient persistent storage (files)  Maintain system integrity, handle failures  Enforce security policies (e.g., access control)  Give users and processes an interface 8 Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
  • 9. Definition of a Distributed System (1) A distributed system is (Tannenbaum):  A collection of independent computers that appears to its users as a single coherent system. A distributed system is (Lamport):  One in which the failure of a computer you didn't even know existed can render your own computer unusable 9 Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
  • 10. Properties of Distributed Systems  Concurrency  Multicore systems  Multiple hosts  No global clock  Theoretical impossibility  Expense of accurate clocks  Independent view  Message delay, failure  Impossible to distinguish slow vs. failed node  Independent failure  Message delivery (loss, corruption)  Nodes (fail-stop) 10 Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com
  • 11. Software Concepts An overview of  NOS (Network Operating Systems)  DOS (Distributed Operating Systems)  Middleware System Description Main Goal DOS Tightly-coupled operating system for multi- processors and homogeneous multicomputers Hide and manage hardware resources NOS Loosely-coupled operating system for heterogeneous multicomputers (LAN and WAN) Offer local services to remote clients Middleware Additional layer atop of NOS implementing general-purpose services Provide distribution transparency
  • 12. Definition of a Distributed System (2) Figure 1-1. A distributed system organized as middleware. The middleware layer extends over multiple machines and offers each application the same interface.
  • 13. Transparency in a Distributed System Figure 1-2. Different forms of transparency in a distributed system (ISO, 1995). Other forms: Parallelism – Hide the number of nodes working on a task Size – Hide the number of components in the system Revision – Hide changes in software/hardware versions
  • 14. Challenges  Performance  Concurrency  Failures  Scalability  System updates/growth  Heterogeneity  Openness  Multiplicity of ownership, authority  Security  Quality of service/user experience  Transparency  Debugging
  • 15. Approaches  Virtual clocks  Group communication  Heartbeats/failure detection, group membership  Distributed agreement, snapshots  Leader election  Transaction protocols  Redundancy, replication, caching  Indirection - naming  Distributed mutual exclusion  Middleware, modularization, layering  Decomposition vs. integration  Cryptographic protocols
  • 16. Scalability Problems Figure 1-3. Examples of scalability limitations. Engineering = art of compromise (making tradeoffs) Distributed systems – many theoretical results on lower bounds of tradeoffs that limit practical solutions
  • 17. Scalability Examples Distributed systems are ubiquitous and necessary:  Web search  Financial transactions  Multiplayer games  DNS  Travel reservation systems  Utility infrastructure (e.g., power grid)  Embedded systems (e.g., cars)  Sensor networks Failure to scale is fatal  Instagram – share cellphone pix  Facebook IPO
  • 18. Web Search Google uses thousands of machines to  Provide search results  Run Page-Rank algorithm Issues  Connecting large number of machines  Distributed file system (GFS)  Indexing  Programming model  Scaling up when current system reaches limits
  • 19. Financial Transactions Volume is huge  4 million messages per second  50 million things you can trade Requirements are stringent  Low latency  24/7 operation (around the world)  Failure “is not an option”  Facebook NASDAQ Freeze  Transaction system overwhelmed  Hours to complete transactions in falling market
  • 20. Multiplayer Games Very popular – huge market Characteristics  May have millions of players  Players operate in same “world”  Players interact with world, each other Issues  Number of users  Latency, consistency  Coordination of multiple servers  Architecture???
  • 21. End 21 Cell: +92300-7327761 Email: mr.harunahmad2014@gmail.com