From c87306af42c468a61b0e39c3464b2dbe4d3f08d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 9 Mar 2018 10:19:31 +0100 Subject: [PATCH] TD1: Fix the deadlock explanation. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TD1/exo3/deadlock.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TD1/exo3/deadlock.txt b/TD1/exo3/deadlock.txt index c926496..1dcd569 100644 --- a/TD1/exo3/deadlock.txt +++ b/TD1/exo3/deadlock.txt @@ -10,4 +10,4 @@ Buffer plein -> P1 se met en attente, P2 a été notifié mais le buffer est ple Solution: faire un notifyAll() en sortie de SC dans le buffer pour s'assurer que un thread d'un type différent du type courant sortant du moniteur est notifié - (Consommateur -> Producteur ou Producteur -> Consommateur) + (Consommateur -> Producteur ou Producteur -> Consommateur) et sort de son attente. -- 2.34.1