flowchart TB
philosopher_0("philosopher_0
๐ค Sent: 100
๐ฅ Recv: 71")
philosopher_4("philosopher_4
๐ค Sent: 67
๐ฅ Recv: 54")
fork_0("fork_0
๐ค Sent: 32
๐ฅ Recv: 51")
fork_4("fork_4
๐ค Sent: 40
๐ฅ Recv: 60")
philosopher_1("philosopher_1
๐ค Sent: 79
๐ฅ Recv: 60")
philosopher_2("philosopher_2
๐ค Sent: 70
๐ฅ Recv: 56")
philosopher_3("philosopher_3
๐ค Sent: 71
๐ฅ Recv: 56")
fork_1("fork_1
๐ค Sent: 30
๐ฅ Recv: 49")
fork_2("fork_2
๐ค Sent: 40
๐ฅ Recv: 59")
fork_3("fork_3
๐ค Sent: 17
๐ฅ Recv: 30")
fork_0 -->|19ร #123;:fork_granted, :fork_0#125;
100/s| philosopher_0
fork_0 -->|11ร #123;:fork_denied, :fork_0#125;
60/s| philosopher_4
fork_1 -->|12ร #123;:fork_granted, :fork_1#125;
95/s| philosopher_0
fork_1 -->|8ร #123;:fork_granted, :fork_1#125;
55/s| philosopher_1
fork_2 -->|11ร #123;:fork_granted, :fork_2#125;
100/s| philosopher_1
fork_2 -->|11ร #123;:fork_denied, :fork_2#125;
100/s| philosopher_2
fork_3 -->|7ร #123;:fork_granted, :fork_3#125;
45/s| philosopher_2
fork_3 -->|7ร #123;:fork_granted, :fork_3#125;
40/s| philosopher_3
fork_4 -->|12ร #123;:fork_denied, :fork_4#125;
100/s| philosopher_3
fork_4 -->|12ร #123;:fork_granted, :fork_4#125;
100/s| philosopher_4
philosopher_0 -->|20ร #123;:request_fork, :philosopher_0#125;
190/s| fork_0
philosopher_0 -->|19ร #123;:request_fork, :philosopher_0#125;
150/s| fork_1
philosopher_0 -->|#123;:start_hungry, :fork_0, :fork_1#125;
every 10ms| philosopher_0
philosopher_1 -->|11ร #123;:request_fork, :philosopher_1#125;
95/s| fork_1
philosopher_1 -->|20ร #123;:request_fork, :philosopher_1#125;
155/s| fork_2
philosopher_1 -->|#123;:start_hungry, :fork_2, :fork_1#125;
every 10ms| philosopher_1
philosopher_2 -->|20ร #123;:request_fork, :philosopher_2#125;
140/s| fork_2
philosopher_2 -->|9ร #123;:request_fork, :philosopher_2#125;
75/s| fork_3
philosopher_2 -->|#123;:start_hungry, :fork_2, :fork_3#125;
every 10ms| philosopher_2
philosopher_3 -->|8ร #123;:request_fork, :philosopher_3#125;
75/s| fork_3
philosopher_3 -->|20ร #123;:request_fork, :philosopher_3#125;
140/s| fork_4
philosopher_3 -->|#123;:start_hungry, :fork_4, :fork_3#125;
every 10ms| philosopher_3
philosopher_4 -->|12ร #123;:request_fork, :philosopher_4#125;
65/s| fork_0
philosopher_4 -->|20ร #123;:request_fork, :philosopher_4#125;
160/s| fork_4
philosopher_4 -->|#123;:start_hungry, :fork_4, :fork_0#125;
every 10ms| philosopher_4
style philosopher_0 fill:#fff3e0,stroke:#f57c00,stroke-width:3px
style philosopher_4 fill:#fff3e0,stroke:#f57c00,stroke-width:3px
style fork_0 fill:#fff3e0,stroke:#f57c00,stroke-width:3px
style fork_4 fill:#fff3e0,stroke:#f57c00,stroke-width:3px
style philosopher_1 fill:#fff3e0,stroke:#f57c00,stroke-width:3px
style philosopher_2 fill:#fff3e0,stroke:#f57c00,stroke-width:3px
style philosopher_3 fill:#fff3e0,stroke:#f57c00,stroke-width:3px
style fork_1 fill:#fff3e0,stroke:#f57c00,stroke-width:3px
style fork_2 fill:#fff3e0,stroke:#f57c00,stroke-width:3px
style fork_3 fill:#e8f5e9,stroke:#388e3c