ISRO Scientist/Engineer CSE 2020Databases › Transactions and Concurrency Control
ISRO Scientist/Engineer CSE 2020 PYQ: Raymonds tree based algorithm ensures
Raymonds tree based algorithm ensures
- Ano starvation, but deadlock may occur in rare cases
- Bno deadlock, but starvation may occurCorrect answer
- Cneither deadlock nor starvation can occur
- Ddeadlock may occur in cases where the process is already starved
Answer
(B) no deadlock, but starvation may occur
Approach
Raymond's tree-based algorithm is a distributed mutual exclusion algorithm that arranges processes in a logical tree and uses a token to grant critical section access. The token-holding process is always reachable via the tree edges, so a circular wait (deadlock) cannot form. However, a process may wait indefinitely if requests keep getting forwarded to other nodes, leading to possible starvation.
Reviewed by ISRO IQ Editorial Team.