How can I prove whether lunch philosophers suffer from dead end or hungry opportunities? When to start?

I have a homework task to prove whether a particular version of the philosopher monkey problem suffers from an impasse or starvation. I suspect that the situation does not suffer at all, but I find it difficult to prove, and I do not know where to start. Is there a general strategy to attack this problem?

+3
source share
2 answers

You can read about Wait-for graphs (more info here ), which are DAGs (Directed Acyclic Graphs) and are used to detect deadlocks.

amuses

+2
source

, , , , .

, , : - , ? , ( , , ) .

, : , , ( ), , , ", , [ ]..."

0
source

Source: https://habr.com/ru/post/1736899/


All Articles