PhilosOphe

Walter Bonetti

Hamza Hammouche

Ressource Sharing

Chopticks

P = 4

Deadlock Problem

P = 4

Two philosopher try to change the same pointer. But the unlock is never called.

Think

Think

Think

Think

Queue

Queue = P

P = 4

1

1

3

3

2

2

Deadlock Problem 2

P = 2

1

2

2

1

... Sleep All Time ...

Priority Queue

Queue = P + 1

P = 4

1

1

3

3

2

2

1

2

3

Q Priority Problem

P = 4

1

1

3

3

2

2

1

2

3

1

Q Priority

P = 4

1

1

3

3

2

2

1

2

3

1

Thank you !

Made with Slides.com