Unit 2 - IPC
Unit 2 - IPC
• Semaphore
• Mutual Exclusion
Mutual exclusion requires that only one process thread can enter the
critical section at a time. This is useful for synchronization and also
prevents race conditions.
• Barrier
A barrier does not allow individual processes to proceed until all the
processes reach it. Many parallel languages and collective routines
impose barriers.
• Spinlock
This is a type of lock. The processes trying to acquire this lock wait in
a loop while checking if the lock is available or not. This is known as
busy waiting because the process is not doing any useful operation
even though it is active.
• Pipe
• Socket
• Signal
• Shared Memory
• Message Queue
Multiple processes can read and write data to the message queue
without being connected to each other. Messages are stored in the
queue until their recipient retrieves them. Message queues are quite
useful for interprocess communication and are used by most operating
systems.