From: Jérôme Benoit Date: Fri, 9 Mar 2018 09:19:31 +0000 (+0100) Subject: TD1: Fix the deadlock explanation. X-Git-Url: https://git.piment-noir.org/?p=TD_SR.git;a=commitdiff_plain;h=c87306af42c468a61b0e39c3464b2dbe4d3f08d9 TD1: Fix the deadlock explanation. Signed-off-by: Jérôme Benoit --- 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.