One97 Interview Question
Software Engineer / DevelopersIf possible, create a directed graph of processes and resources acquired by them.. and then remove cycles.. cycles correspond to circular deadlock..
making the directed graph of processes may result in starvation of same process.
what if each time a process"b" is removed from cycle in this way process b is never executed.
there must be waiting time given for process execution .. if it doesn't then roll back should be done on priority basis.
a lock that is dead or not working is a deadlock
- Anonymous December 18, 2010