0% found this document useful (0 votes)
9 views14 pages

Inter-Process Communication Methods

Inter-process communication (IPC) is a mechanism that allows processes to communicate and synchronize their actions, utilizing methods such as shared memory, message passing, signals, message queues, sockets, semaphores, and pipes. IPC can be categorized into independent and cooperating processes, with the latter being affected by other processes. While IPC enhances modularity and convenience, it also poses challenges like synchronization issues and memory protection.

Uploaded by

anu2006mercy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views14 pages

Inter-Process Communication Methods

Inter-process communication (IPC) is a mechanism that allows processes to communicate and synchronize their actions, utilizing methods such as shared memory, message passing, signals, message queues, sockets, semaphores, and pipes. IPC can be categorized into independent and cooperating processes, with the latter being affected by other processes. While IPC enhances modularity and convenience, it also poses challenges like synchronization issues and memory protection.

Uploaded by

anu2006mercy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Inter-process

communication in
operating sy em
Instructor : Learn Today
Course : Operating System
Inter-process communication

A process can be two types.


 Independent Process
Co-Operating Process
Independent Process
Independent process is not affected by the execution of other
processes.
Co-Operating Process
Cooperating Process can be affected by other executing
[Link] this process uses IPC.
Inter-process communication is the mechanism provided by the
operating system that allows process to communicate with each
other.
This communication could involve a process letting another
process know that some event has occurred or the transferring
of data from one process to another.
Process Process
2
IPC

1
Methods in inter-process
communication
Shared Memory
Message Passing
Signal
Message Queue
Sockets
Semaphore
Pipe
Shared Memory

Inter process communication through shared memory is a


concept where two or more process can access the common
memory and communication is done via this shared Memory
where changes made by one process can by viewed by another
process.
Message Passing

Another major Inter-process communication concept


implemented by most popular operating systems is message
[Link] message Passing
process exchange data by passing
messages using only two
operations send and receive.
Message Passing concept looks
simple,but it requires a number of
design choices to be made.
Signal

A signal is an asynchronous notification sent to a process or to a


specific thread within the same process to notify it of an event.
Message Queue

A message Queue can be created by one process and used by multiple


processes that read and/or write messages to the queue.
For example,A server process can read and write messages from and
to a message Queue created for client processes.
Sockets

Inter-process communication is the mechanism provided by the


Operating System that allows processes to communicate with
each other.
They provide point-to-point,two way communication between
two [Link] are an endpoint of communication and a
name can be bound to them.
Semaphore

Semaphore is used to protect any resources such as global


shared Memory that needs to be accessed and updated by many
processes simultaneously.
Semaphore acts as a guard/lock on the resources Whenever a
process needs to access the resource,it first needs to take
permission from the semaphore.
Pipe

A pipe is a technique used for inter process communication.A


pipe is a mechanism by which the output of one process is
directed into the input of another process.
Advantages of IPC

Here,are the reasons for using the inter-process communication


protocol for information sharing.
It helps to speedup modularity
Computational
Privilege separation
Convenience
Helps operating system to communicate with each other and
synchronize their actions.
Disadvantages of IPC

All the processed that use the shared memory model need to
make sure that they are not writing to the same memory location.
Shared Memory model may create problems such as
synchronization and memory protection that need to be addressed.

You might also like