Operating System Course
Operating System Course
Learning Objectives
Importance of IPC
Semaphore
A semaphore is a variable that controls the access to a common
resource by multiple processes.
Mutual Exclusion
Mutual exclusion requires that only one process thread can enter
the critical section at a time.
Barrier
A barrier does not allow individual processes to proceed until all
the processes reach it.
Spinlock
This is a type of lock.
Pipe
A pipe is a data channel that is unidirectional.
Socket
The socket is the endpoint for sending or receiving data in a
network.
File
A file is a data record that may be stored on a disk or acquired on
demand by a file server.
Signal
Signals are useful in inter-process communication in a limited
way.
They are system messages that are sent from one process to
another.
Normally, signals are not used to transfer data but are used for
remote commands between processes.
Shared Memory
Shared memory is the memory that can be simultaneously
accessed by multiple processes.
Message Queue
Multiple processes can read and write data to the message queue
without being connected to each other.
Pipes −
A pipe is a channel of communication that is one-way that
enables a single procedure to transmit data to a different one.
Message Queues −
Message queues are employed for inter-process interaction when
both the sending and getting processes do not need to be present at
the same time.
Shared Memory −
Shared memory is an inter process communication method that
enables various programs to make use of a single storage region.
Semaphores −
Semaphores serve to keep the utilization of resources that are
shared synchronized.
Socket −
Sockets constitute an internet-based communications process
that enables procedures to interact with one another over a
network.
Signals −
Asynchronous IPC signals are employed for informing an
operator of an occurrence or interference.
Advantages
The following are many benefits of employing inter process
communication (IPC) techniques for procedure interaction:
Advantages
Increased Security −
IPC may be employed to enhance security for applications by
managing the utilization of resources that are shared.
Disadvantages
There are also a number of potential drawbacks to keep in mind:
Disadvantages
Increased Risk of Race Condition −
IPC may boost the likelihood of race circumstances, which occur
when several programmers access a resource that is shared at the
same period of time potentially resulting in corruption of
information or other problems.
Disadvantages
System Dependency −
In accordance with the system that underlies it, distinctive IPC
techniques might come with distinct needs and constraints.
https://www.youtube.com/watch?v=0zRA4PAQCME
https://www.youtube.com/watch?v=nwP-wl8w2Ug