Professional Documents
Culture Documents
IPC Isuuess in Distributed System
IPC Isuuess in Distributed System
IPC Isuuess in Distributed System
3.1.2.1. Starvation
A starvation condition can occur when multiple processes or threads compete for access to a
shared resource. One process may monopolise the resource while others are denied access.
3.1.2.2. Deadlock
A deadlock condition can occur when two processes need multiple shared resources at the
same time in order to continue.
These two pirates are in deadlock because neither is willing to give-up what the other pirate
needs.
The nature of the problem is more clear when we examine the assembly language code for
such an operation:
The root of the problem stems from a context switch occurring in the middle of the execution
of the critical section.