SlideShare a Scribd company logo
NAME: DHWANI HINGORANI
ENR NO: 170410107025
SUBJECT: OPERATING SYSTEM
INTER PROCESS COMMUNICATION
 An independent process is not affected by the execution
of other processes while a co-operating process can be
affected by other executing processes. Though one can
think that those processes, which are running
independently, will execute very efficiently but in
practical, there are many situations when co-operative
nature can be utilised for increasing computational
speed, convenience and modularity. Inter process
communication (IPC) is a mechanism which allows
processes to communicate each other and synchronize
their actions. The communication between these
processes can be seen as a method of co-operation
between them.
PROCESSES CAN COMMUNICATE WITH EACH OTHER USING THESE
TWO WAYS:
Shared Memory Message Passing
CRITICAL SECTION
 A Critical Section is a code segment that accesses
shared variables and has to be executed as an
atomic action. It means that in a group of
cooperating processes, at a given point of time,
only one process must be executing its critical
section.
RACE CONDITION
A race condition is an
undesirable situation that
occurs when a device or
system attempts to
perform two or more
operations at the same
time, but because of the
nature of the device or
system, the operations
must be done in the
proper sequence to be
done correctly.
RACE CONDITION
Incorrect behaviour of a
program due to concurrent
execution of critical sections
by two or more threads.
For example, if thread one
deletes an entry in a linked
list while thread 2 is
accessing the same entry.
SOLUTION
 A simple solution to critical section can be thought as shown
below,
 acquireLock();
 Process Critical Section
 releaseLock();
 A thread must acquire a lock prior to executing critical section. The
lock can be acquired by only one thread. There are various ways to
implement locks in the above pseudo code.
THANK YOU

More Related Content

Similar to Inter Process Communication

OPERATING SYSTEM.pptx
OPERATING SYSTEM.pptxOPERATING SYSTEM.pptx
OPERATING SYSTEM.pptx
julitapelovello
 
Interactive os
Interactive osInteractive os
Interactive osmimie_ghaz
 
Firo
FiroFiro
Operating system notes
Operating system notesOperating system notes
Operating system notesSANTOSH RATH
 
Distributed Systems Distributed Systems - MSc..pptx
Distributed Systems Distributed Systems - MSc..pptxDistributed Systems Distributed Systems - MSc..pptx
Distributed Systems Distributed Systems - MSc..pptx
ssuser376193
 
Distributed Systems Distributed Systems - MSc..pptx
Distributed Systems Distributed Systems - MSc..pptxDistributed Systems Distributed Systems - MSc..pptx
Distributed Systems Distributed Systems - MSc..pptx
ssuser376193
 
IPC manufacturer
IPC manufacturerIPC manufacturer
IPC manufacturer
AccelusRobotics
 
input and output protection.pptx
input and output protection.pptxinput and output protection.pptx
input and output protection.pptx
AliyanAbbas1
 
Os question
Os questionOs question
Os question
saurav-IT
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
Dinesh Modak
 
A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...
A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...
A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...Neelamani Samal
 
1Discuss the major components of an OS including file system, proc.pdf
1Discuss the major components of an OS including file system, proc.pdf1Discuss the major components of an OS including file system, proc.pdf
1Discuss the major components of an OS including file system, proc.pdf
feelingcomputors
 
Distributed system
Distributed systemDistributed system
Distributed system
chirag patil
 
Osonto documentatie
Osonto documentatieOsonto documentatie
Osonto documentatie
wondernet
 
Process synchronization
Process synchronizationProcess synchronization
Process synchronization
lodhran-hayat
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
PralhadDani1
 
Chapter two process.pptx
Chapter two process.pptxChapter two process.pptx
Chapter two process.pptx
MezigebuMelese1
 
MC 7204 OS Question Bank with Answer
MC 7204 OS Question Bank with AnswerMC 7204 OS Question Bank with Answer
MC 7204 OS Question Bank with Answer
sellappasiva
 
Os
OsOs

Similar to Inter Process Communication (20)

OPERATING SYSTEM.pptx
OPERATING SYSTEM.pptxOPERATING SYSTEM.pptx
OPERATING SYSTEM.pptx
 
Interactive os
Interactive osInteractive os
Interactive os
 
Firo
FiroFiro
Firo
 
Operating system notes
Operating system notesOperating system notes
Operating system notes
 
Distributed Systems Distributed Systems - MSc..pptx
Distributed Systems Distributed Systems - MSc..pptxDistributed Systems Distributed Systems - MSc..pptx
Distributed Systems Distributed Systems - MSc..pptx
 
Distributed Systems Distributed Systems - MSc..pptx
Distributed Systems Distributed Systems - MSc..pptxDistributed Systems Distributed Systems - MSc..pptx
Distributed Systems Distributed Systems - MSc..pptx
 
IPC manufacturer
IPC manufacturerIPC manufacturer
IPC manufacturer
 
input and output protection.pptx
input and output protection.pptxinput and output protection.pptx
input and output protection.pptx
 
Os
OsOs
Os
 
Os question
Os questionOs question
Os question
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
 
A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...
A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...
A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...
 
1Discuss the major components of an OS including file system, proc.pdf
1Discuss the major components of an OS including file system, proc.pdf1Discuss the major components of an OS including file system, proc.pdf
1Discuss the major components of an OS including file system, proc.pdf
 
Distributed system
Distributed systemDistributed system
Distributed system
 
Osonto documentatie
Osonto documentatieOsonto documentatie
Osonto documentatie
 
Process synchronization
Process synchronizationProcess synchronization
Process synchronization
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
Chapter two process.pptx
Chapter two process.pptxChapter two process.pptx
Chapter two process.pptx
 
MC 7204 OS Question Bank with Answer
MC 7204 OS Question Bank with AnswerMC 7204 OS Question Bank with Answer
MC 7204 OS Question Bank with Answer
 
Os
OsOs
Os
 

Recently uploaded

Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 

Recently uploaded (20)

Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 

Inter Process Communication

  • 1. NAME: DHWANI HINGORANI ENR NO: 170410107025 SUBJECT: OPERATING SYSTEM
  • 2. INTER PROCESS COMMUNICATION  An independent process is not affected by the execution of other processes while a co-operating process can be affected by other executing processes. Though one can think that those processes, which are running independently, will execute very efficiently but in practical, there are many situations when co-operative nature can be utilised for increasing computational speed, convenience and modularity. Inter process communication (IPC) is a mechanism which allows processes to communicate each other and synchronize their actions. The communication between these processes can be seen as a method of co-operation between them.
  • 3. PROCESSES CAN COMMUNICATE WITH EACH OTHER USING THESE TWO WAYS: Shared Memory Message Passing
  • 4. CRITICAL SECTION  A Critical Section is a code segment that accesses shared variables and has to be executed as an atomic action. It means that in a group of cooperating processes, at a given point of time, only one process must be executing its critical section.
  • 5. RACE CONDITION A race condition is an undesirable situation that occurs when a device or system attempts to perform two or more operations at the same time, but because of the nature of the device or system, the operations must be done in the proper sequence to be done correctly.
  • 6. RACE CONDITION Incorrect behaviour of a program due to concurrent execution of critical sections by two or more threads. For example, if thread one deletes an entry in a linked list while thread 2 is accessing the same entry.
  • 7. SOLUTION  A simple solution to critical section can be thought as shown below,  acquireLock();  Process Critical Section  releaseLock();  A thread must acquire a lock prior to executing critical section. The lock can be acquired by only one thread. There are various ways to implement locks in the above pseudo code.